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
slim bridge: decide Direct DriverTraits policy; convert AVR/ATtiny #4590
Open decision: do bit-bang platforms move onto the template with a manager-free Direct DriverTraits, or are they exempted? The requirement is zero flash increase.
Measure a same-SHA bash bloat on uno and an ATtiny board. Files:
Part of #4580. Follow the slim bridge format, the gap register (A1-A12) and the testing plan (T0-T4) there. Acceptance: the T1 conformance suite passes, a same-SHA bash bloat before/after is recorded, and AutoResearch evidence is included where hardware is available.
none; the legacy path is the direct ObjectFLED proxy (46 KB of ObjectFLED code)
rp2040
90,185 B
none; the legacy path is direct PIO (38.8 KB)
The slim bridge saves flash by removing fl::Channel from the legacy path, and these platforms never linked it. For them:
Bridged DriverTraits would addChannelManager and the channel stack (a flash increase);
Direct DriverTraits would be a no-gain refactor of timing-critical bit-bang code, and most of those boards have no hardware in the loop.
Rule: a platform converts if and only if its legacy controller already uses the channel pattern: an fl::Channel subclass, or it owns a ChannelData and a channel driver.
Exempt per the decision recorded in #4590: this platform's legacy clockless path links no channel code, so the slim bridge has nothing to remove, and bridging would add ChannelManager. Reopen if its legacy controller adopts a channel driver.
Correction: Teensy 4.x and RP2040/2350 have channel engines (ObjectFLED/FlexIO/LPUART; PIO/UART/SPI) that their legacy clockless controllers bypass, so the blanket exemption doesn't fit them. Follow-up #4599 measures whether to bridge their legacy controllers onto those engines.
Measured on origin/master e61aae4f0d, Blink, bash bloat <board> --build.
AVR/ATtiny: there is no channel driver (FASTLED_HAS_CHANNELS 0, and no IChannelDriver or BusTraits under src/platforms/avr). The legacy files do not reference channel types.
Board
Flash
RAM
Channel symbols
uno
4,750 B
628 B
none
attiny85
3,190 B
449 B
none
Policy (Direct DriverTraits): a platform moves to fl::SlimBridgeController only when it has a channel engine to bridge onto (Bridged), and only if that is flash-neutral or better with feature parity. A pure bit-bang or direct controller does not get a "Direct" traits reshuffle. That would re-home the same cycle-counted code without saving flash, with a real regression risk and no hardware validation. So no Direct DriverTraits is added, and AVR/ATtiny stays as-is.
Per-platform outcomes (all closed as not planned, with evidence in each comment):
Activity
zackees commentedon Sep 25, 2026
Decision: exempt pure bit-bang/direct controllers; convert only channel-backed ones
Measured: same toolchain, Blink,
bash bloat <board> --build, 2026-09-24.ChannelManager,fl::Channel,ChannelEvents,ChannelData,IChannelDriver)The slim bridge saves flash by removing
fl::Channelfrom the legacy path, and these platforms never linked it. For them:ChannelManagerand the channel stack (a flash increase);Rule: a platform converts if and only if its legacy controller already uses the channel pattern: an
fl::Channelsubclass, or it owns aChannelDataand a channel driver.This issue is exempt as well.
Revisit only if one of these platforms' legacy controller starts using a channel driver.
zackees commentedon Sep 25, 2026
Exempt per the decision recorded in #4590: this platform's legacy clockless path links no channel code, so the slim bridge has nothing to remove, and bridging would add
ChannelManager. Reopen if its legacy controller adopts a channel driver.zackees commentedon Sep 25, 2026
Correction: Teensy 4.x and RP2040/2350 have channel engines (ObjectFLED/FlexIO/LPUART; PIO/UART/SPI) that their legacy clockless controllers bypass, so the blanket exemption doesn't fit them. Follow-up #4599 measures whether to bridge their legacy controllers onto those engines.
zackees commentedon Sep 25, 2026
Reopened under follow-up meta #4601. The exemption in #4590 is being re-evaluated per platform by measurement rather than applied as a blanket rule.
zackees commentedon Sep 25, 2026
Measured on origin/master
e61aae4f0d, Blink,bash bloat <board> --build.AVR/ATtiny: there is no channel driver (
FASTLED_HAS_CHANNELS0, and noIChannelDriverorBusTraitsundersrc/platforms/avr). The legacy files do not reference channel types.Policy (Direct DriverTraits): a platform moves to
fl::SlimBridgeControlleronly when it has a channel engine to bridge onto (Bridged), and only if that is flash-neutral or better with feature parity. A pure bit-bang or direct controller does not get a "Direct" traits reshuffle. That would re-home the same cycle-counted code without saving flash, with a real regression risk and no hardware validation. So no Direct DriverTraits is added, and AVR/ATtiny stays as-is.Per-platform outcomes (all closed as not planned, with evidence in each comment):
clockless_block_esp32.his dead code with no includers.The Bridged candidates that remain are Teensy 4.x and RP2040/2350, tracked in #4599/#4588/#4589.