Repository navigation
Description
Summary
The optional NeoPixelBus adapter cannot currently be included after FastLED.h on a real ESP32 toolchain. Its fl::ClocklessController class collides with the platform's existing alias. The opt-in macro enables the adapter header but is not wired into platform dispatch.
Discovered while validating #4773. This integration gap is separate from noexcept policy and does not justify changing unity builds or build architecture.
Evidence and reproduction
Environment: NeoPixelBus 2.8.4, esp32dev_idf44, fbuild 2.5.37, Arduino ESP32 2.0.3 / ESP-IDF 4.4.1, GCC 8.4.0. A direct compile with the adapter explicitly included after FastLED.h fails:
#define FASTLED_USE_NEOPIXEL_BUS 1
#include <FastLED.h>
#include "platforms/neopixelbus/clockless.h"Compiler diagnostic:
platforms/neopixelbus/clockless.h:275: conflicting declaration of template fl::ClocklessController
platforms/esp/clockless.h:88: previous declaration using ClocklessController = ClocklessBlocking<...>
Full local evidence: /tmp/fastled-4773-neo-direct.log. The exact platform alias selected can vary with enabled drivers; the name collision does not depend on that choice.
Two independent source checks confirm:
src/platforms/clockless.hdispatches ESP toplatforms/esp/clockless.h, which declares the platform alias.- Repository-wide searches show
FASTLED_USE_NEOPIXEL_BUSonly in the adapter header and its README; the flag does not select that adapter in platform dispatch.
Requested scope
Define and implement the supported opt-in integration contract with the actual NeoPixelBus dependency. Decide whether explicit adapter use gets a distinct controller name or whether opt-in dispatch selects the adapter before the platform default alias is declared. Preserve existing default drivers and unity builds. Any build-file changes require an explicit issue directive.
Acceptance
- Compile and instantiate the real adapter with NeoPixelBus 2.8.4 on the legacy IDF4 ESP32 profile and a modern IDF5 ESP32 profile where the dependency supports its RMT API.
- Exercise documented include order and intentional alternate include order; report unsupported combinations explicitly.
- Confirm ordinary FastLED builds without opt-in retain their default controller.
- Verify RGB/RGBW integration and method selection to the extent claimed by the adapter documentation; do not describe mere dependency inclusion as adapter validation.
- Document any hardware validation gap separately from compilation.
Related issue search
Searched all open and closed FastLED issues for NeoPixelBus + ClocklessController, FASTLED_USE_NEOPIXEL_BUS, NeoPixelBus + ESP32, and NeoPixelBus + conflicting. No focused matching open issue found. #4597 (closed, shared/fallback slim bridge) includes the adapter in its migration scope; #4580 tracks the broader bridge migration. Neither establishes real dependency include-order integration coverage.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTriage
Activity