Skip to content

ESP8266: expose native HSPI as a channel/Bus::SPI driver; retire FASTLED_ALL_PINS_HARDWARE_SPI #4942

Closed

Description

@zackees

Problem

The register-level HSPI driver (src/platforms/esp/8266/fastspi_esp8266_hspi.h,
SPI1 on GPIO13/14) is reachable only through the legacy SPIOutput<> dispatch
(spi_output_template.h), and the non-HSPI pair has a define-gated legacy shim
(FASTLED_ALL_PINS_HARDWARE_SPI → fastspi_esp8266.h). There is no ESP8266
BusTraits<Bus::SPI> specialization, so the modern channel API cannot select it.

Evidence

  • find src -name bus_traits.h → ESP32 has drivers/spi/bus_traits.h; none under
    esp/8266.
  • src/platforms/esp/8266/spi_output_template.h:33 — the shim include is behind
    #if defined(FASTLED_ALL_PINS_HARDWARE_SPI).
  • src/platforms/esp/8266/README.md — "It is no longer needed for GPIO13/14".

Proposed fix

Add BusTraits<Bus::SPI> backed by ESP8266HSPIOutput, template-selected; the
generic software bit-bang (Bus::BIT_BANG) already covers every other pin pair,
so FASTLED_ALL_PINS_HARDWARE_SPI can be deleted.

Acceptance

add<Bus::SPI, SpiChipsetConfig>() drives an APA102 strip on 13/14 on hardware;
the define is gone and no build needs it.

Activity

  1. added
    type: feature
    priority: medium
    platform: esp8266
    area: drivers
    on Oct 27, 2026
  2. added 2 commits that reference this issue on Oct 27, 2026
  3. moved this from Triage to Done in FastLED Trackeron Oct 28, 2026
  4. added 2 commits that reference this issue on Oct 28, 2026
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

    area: driversplatform: esp8266priority: mediumtype: feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions