Skip to content

Multiple SPI buses (for ESP32-S2 and ESP32-S3) #1516

Closed

Description

@Suxsem

Dear all,

ESP32-S2 and ESP32-S3 have two user SPIs, namely FSPI and HSPI.

I'm using the first one by adding
#define FASTLED_ESP32_SPI_BUS FSPI

But now I want to connect a second strip and drive it in parallel to the first one using the second SPI bus (HSPI). I don't want to use the same bus for the two strips for performance reasons (I'm building a POV project and very high refresh rate is a must; i'm using the new HD107S led chip to achieve these high speed refresh rate).

Is it possible two instantiate two FastLED objects with different SPI buses? Thank you!

Activity

  1. samguyer commented on Sep 3, 2023

    @samguyer
    Contributor

    @Suxsem Seems like a nice idea. Right now, the way SPI is specified in the library does not make it easy -- there is basically a single global SPI thing that gets configured and used. It's all compile-time choices. BUT if you would like to try to change it, to make it configurable, that would be a welcome contribution. We can help out if you need support.

  2. added
    platform: esp32
    area: drivers
    status: stale
    status: triage
    on Apr 16, 2026
  3. zackees commented on Apr 20, 2026

    @zackees
    Member

    Research note against current repo head as of 2026-04-20: the repo now registers multiple ESP32 SPI hosts internally, and SPIBusManager groups devices by shared clock pin before deciding how to route them. So separate buses are possible in the implementation, but there is still no clean sketch-level API to pin one controller to FSPI and another to HSPI explicitly.

    Today the practical options are using distinct clock-pin groups or the global FASTLED_ESP32_SPI_BUS default. If per-controller bus selection is still needed, the next step is an explicit bus override in controller config plus a regression test for two independent buses on ESP32-S2/S3.

  4. moved this from Triage to Done in FastLED Trackeron Aug 31, 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: esp32status: stalestatus: triage

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions