Repository navigation
#1552: Improve ESP32-S3 SPI Support - #1610
Conversation
…g FSPI. This seems to be the right approach. However, this does limit the ability to support multiple SPI busses running on multiple pins--something that should in theory be supported by the ESP32S3.
|
Looks great! I'm just running the automatic merge checks... |
|
Merged! Thanks for your contribution |
|
I'm targeting ESP32 S3 (Arduino Nano ESP32) with master branch containing this PR. I'm doing the following: #define FASTLED_ALL_PINS_HARDWARE_SPI
#include <FastLED.h>
#define DATA_PIN 11
#define CLK_PIN 13
#define NUM_LEDS 144
#define BRIGHTNESS 64
#define LED_TYPE APA102
#define COLOR_ORDER BGR
CRGB leds[NUM_LEDS];
...
void setup() {
FastLED.addLeds<LED_TYPE,DATA_PIN,CLK_PIN,COLOR_ORDER>(leds, NUM_LEDS);
}I get these errors:
|
This pull request aims to resolve issue #1552 by adapting FastLED's SPI handling for the ESP32-S3. The ESP32-S3 diverges from previous ESP32 models by not using named SPI buses (VSPI/HSPI). Instead, it supports flexible pin assignments for SPI communication. In response, this update defaults to "FSPI" for the ESP32-S3, allowing dynamic pin assignment rather than relying on hardcoded pin mappings.
I want to note that while this solution aligns FastLED with the ESP32-S3's SPI flexibility, I'm not entirely certain this is the absolute "best practice" within the broader context of esp-idf and the arduino-espressif library ecosystem. If you know a better way, I'm all ears!