Skip to content

"Invalid pin specified" for GPIO7 on ESP32-PICO-V3-02 #1372

Closed

Description

@scottbez1

I'm looking to use FastLED to drive LEDs from GPIO7 on an ESP32-PICO-V3-02.

It looks like normally GPIO7 is part of the FASTLED_UNUSABLE_PIN_MASK for ESP32 and therefore disallowed, but the datasheet for this particular SiP package indicates that IO7 (along with IO8 and IO20) are usable externally:
image

I tried setting -DFASTLED_UNUSABLE_PIN_MASK=0x100740LL in my platformIO build flags, but unfortunately it looks like the definition of _FL_BIT(B) is within the #ifndef FASTLED_UNUSABLE_PIN_MASK (link to code), so by specifying the unusable pin mask as a build flag, _FL_BIT(B) is no longer defined, which breaks a bunch of other macros that depend on it...

Is there an easy way to modify the FASTLED_UNUSABLE_PIN_MASK or tweak some other config to allow this pin to be used?

Should the definition of _FL_BIT(B) be moved outside the ifndef? (I made this change locally and everything works as I'd expect, but I'm not sure if this would potentially break anything in other situations; if it seems like a reasonable change, I'm happy to submit a quick PR for it)

Thanks!

Activity

  1. added
    type: bug
    platform: esp32
    area: core
    status: stale
    status: triage
    on Apr 16, 2026
  2. added a commit that references this issue on Apr 17, 2026
    09e7dcf
  3. zackees commented on Apr 17, 2026

    @zackees
    Member

    Working on this in PR #2276 (branch fix-esp32-fl-bit-macro). Moving #define _FL_BIT(B) (1ULL << B) out of the #ifndef FASTLED_UNUSABLE_PIN_MASK block so that users who override the pin mask via a build flag can compile cleanly.

  4. moved this from Triage to In Progress in FastLED Trackeron Apr 17, 2026
  5. added a commit that references this issue on Apr 17, 2026
    057890d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreplatform: esp32status: stalestatus: triagetype: bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions