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
Multiple SPI buses (for ESP32-S2 and ESP32-S3) #1516
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!
@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.
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.
Activity
samguyer commentedon Sep 3, 2023
@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.
zackees commentedon Apr 20, 2026
Research note against current repo head as of 2026-04-20: the repo now registers multiple ESP32 SPI hosts internally, and
SPIBusManagergroups 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_BUSdefault. 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.feat(esp32): select SPI host per controller (#1516) (#4088)