Skip to content

ESP8266: I2S output engine (clockless/parallel via the I2S peripheral) #4943

Closed

Description

@zackees

Problem

The ESP8266 has an I2S peripheral but FastLED ships no I2S output driver for
it. The clockless path is CPU-cycle bit-banging (clockless_esp8266.h) plus the
blockless multi-lane variant (clockless_block_esp8266.h). ESP32 has a full I2S
engine that drives up to 24 strips in parallel
(src/platforms/esp/32/drivers/i2s/).

Evidence

  • find src/platforms/esp/8266 -name '*i2s*' → nothing.
  • src/platforms/esp/32/drivers/i2s/clockless_i2s_esp32.h exists for ESP32.

Proposed fix

A template driver selected through BusTraits/DefaultBus (a candidate default
for the clockless bus on ESP8266), so it dead-strips on builds that don't use it.
Note the ESP8266 I2S FIFO/register set is not the ESP32 one — this is new code,
not a port.

Acceptance

On-device WS2812 frame driven from I2S (CPU free during the transfer), with
bus/driver reported by the channel manager; size-proven to link only when used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: driversplatform: esp8266priority: lowtype: feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions