Skip to content

slim bridge follow-up: Teensy 4.x and RP2040/2350 legacy clockless should route through their existing channel engines #4599

Closed

Description

@zackees

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 no ChannelManager/ChannelData/IChannelDriver linked.

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:

The risk is a flash increase from linking ChannelManager. That makes this a measurement decision, not a blanket exemption.

Tasks

  1. Measure the Bridged cost: same-SHA bash bloat teensy41 and bash bloat rp2040 for Blink, legacy direct vs. a prototype slim controller over ChannelEngineObjectFLED / ChannelEngineRpPio. Record the firmware.bin and symbol deltas.
  2. 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.
  3. Decide: convert if it's net-neutral or better on flash with parity. Otherwise document why the duplicate stays.
  4. 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) and bash autoresearch rp2040 --pio (or equivalent), --legacy.

Part of #4580. Supersedes the exemption in #4588 and #4589 for these two platforms.

Activity

  1. zackees commented on Sep 25, 2026

    @zackees
    MemberAuthor

    Decided per platform:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions