You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Invalid pin specified" for GPIO7 on ESP32-PICO-V3-02 #1372
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:
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)
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.
Activity
fix(esp32): move _FL_BIT macro out of FASTLED_UNUSABLE_PIN_MASK ifndef
zackees commentedon Apr 17, 2026
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_MASKblock so that users who override the pin mask via a build flag can compile cleanly.fix(esp32): move _FL_BIT macro out of FASTLED_UNUSABLE_PIN_MASK ifndef (