Repository navigation
Description
Follow-up to #4588 and #4589, which were closed as exempt under #4590. That exemption was too broad for these two platforms: both have channels-API drivers, but their legacy addLeds<> clockless controllers bypass them.
Facts
Teensy 4.x
- Channel engines exist:
ChannelEngineObjectFLED(teensy4_common/drivers/objectfled/channel_engine_objectfled.h)ChannelEngineFlexIO(drivers/flexio/channel_engine_flexio.h)ChannelEngineLPUART(drivers/lpuart/channel_engine_lpuart.h)
- The legacy clockless path is a separate ObjectFLED proxy (
teensy4_common/clockless.h), not the channel engine. - Measured teensy41 Blink (
bash bloat teensy41 --build, 2026-09-24): 58,136 B flash, ~46 KB of it ObjectFLED, with noChannelManager/ChannelData/IChannelDriverlinked.
RP2040 / RP2350
- Channel engines exist:
ChannelEngineRpPio(rpcommon/channel_engine_rp_pio.h)ChannelEngineRpUart(rpcommon/channel_engine_rp_uart.h)ChannelEngineRpSpi(rpcommon/channel_engine_rp_spi.h)
- The legacy clockless path is a separate direct PIO controller (
rpcommon/clockless_rp_pio.h,clockless_rp_pio_parallel.h). - Measured rp2040 Blink: 90,185 B flash, ~38.8 KB PIO, with no channel code linked.
Both platforms have FASTLED_SPI_USES_CHANNEL_API=1, so their clocked SPI addLeds already builds an fl::Channel. That part is covered by #4585.
The question
Each platform carries two implementations of the same clockless output: a legacy direct controller and a channel engine. Should the legacy addLeds<> controller become a Bridged slim controller over the existing channel engine?
Doing so would:
- remove the duplicate implementation;
- give legacy strips the channel engine's async behaviour;
- make them testable with the slim bridge T0: extract shared fl::SlimBridgeController + conformance suite #4581 conformance suite.
The risk is a flash increase from linking ChannelManager. That makes this a measurement decision, not a blanket exemption.
Tasks
- Measure the Bridged cost: same-SHA
bash bloat teensy41andbash bloat rp2040for Blink, legacy direct vs. a prototype slim controller overChannelEngineObjectFLED/ChannelEngineRpPio. Record thefirmware.binand symbol deltas. - Compare the engines: check the legacy direct controller against the channel engine for feature parity and timing: multi-lane/parallel, RGBW, refresh rate and latency.
- Decide: convert if it's net-neutral or better on flash with parity. Otherwise document why the duplicate stays.
- If converting: run the T1 conformance suite (slim bridge T0: extract shared fl::SlimBridgeController + conformance suite #4581) with the platform's DriverTraits, plus AutoResearch on hardware:
bash autoresearch teensy41 --objectfled(or equivalent) andbash autoresearch rp2040 --pio(or equivalent),--legacy.
Part of #4580. Supersedes the exemption in #4588 and #4589 for these two platforms.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Sep 25, 2026
Decided per platform:
fix(teensy4): share ObjectFLED singleton, restore pin warnings (#4617 …
fix(teensy4): review follow-ups for the ObjectFLED slim bridge (#4629)