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
ESP8266: add a DefaultBus specialization so fl::Bus::AUTO resolves #4941
fl::Bus::AUTO (and any fl::Channel<Chipset> named without an explicit bus)
resolves through DefaultBus<Chipset>::value
(src/fl/channels/channel_typed.h:49). src/fl/channels/bus.h specializes DefaultBus for STUB/WASM, ESP32, Teensy 4.x, ARM LPC, RP2040/RP2350 — there
is no ESP8266 branch, so the primary template is undefined and any use fails
to compile.
Evidence
src/fl/channels/bus.h — the #if defined(FL_IS_STUB) ... #elif defined(FL_IS_ESP32) ... #elif FL_IS_TEENSY_4X ... #elif FL_IS_ARM_LPC ... #elif FL_IS_RP2040 || FL_IS_RP2350 ... #endif chain has no ESP8266 arm.
#elif defined(FL_IS_ESP8266)
template<> structDefaultBus<ClocklessChipset> { staticconstexpr Bus value = Bus::BIT_BANG; };
template<> structDefaultBus<SpiChipsetConfig> { staticconstexpr Bus value = Bus::BIT_BANG; };
(BIT_BANG is the shared universal driver src/platforms/shared/bitbang/bus_traits.h;
a native ESP8266 engine would replace the clockless default later.)
Acceptance
A sketch using fl::Channel<ClocklessChipset> / add<Bus::AUTO>() compiles for
ESP8266; a compile test covers it. No #define involved.
Activity
Merge pull request #4950 from FastLED/feat/4941-esp8266-default-bus
feat(esp8266): resolve fl::Bus::AUTO via a DefaultBus specialization