FastLED 3.10.6
Loading...
Searching...
No Matches

◆ addLedsSpiChannel() [1/4]

template<ESPIChipsets CHIPSET, fl::u8 DATA_PIN, fl::u8 CLOCK_PIN, fl::EOrder RGB_ORDER, fl::u32 SPI_DATA_RATE, fl::Bus B = fl::Bus::AUTO, fl::u8 B_WHICH = 0>
::CLEDController & CFastLED::addLedsSpiChannel ( CRGB * data,
int nLeds,
fl::Esp32SpiBus spiBus )
inline

Add an SPI controller with an explicit ESP-IDF SPI host.

Definition at line 1214 of file FastLED.h.

1214 {
1215 fl::SpiEncoder encoder = fl::SpiEncoder::spiEncoderForChipset(
1216 static_cast<fl::SpiChipset>(CHIPSET), SPI_DATA_RATE);
1217 fl::SpiChipsetConfig spiCfg(DATA_PIN, CLOCK_PIN, encoder, spiBus);
1220 }
#define DATA_PIN
Definition ClientReal.h:82
#define CHIPSET
LPD8806Controller WS2803Controller MY9221Controller APA102Controller APA102ControllerHD APA102Controller HD108Controller SK9822ControllerHD ::CLEDController & addLedsSpiDispatch(CRGB *data, int nLedsOrOffset, int nLedsIfOffset, const fl::SpiChipsetConfig &spiCfg, fl::true_type)
Definition FastLED.h:1180
SpiChipset
LED chipsets with SPI interface (clocked protocols) Modern type-safe enum class - prefer this for new...
static SpiEncoder spiEncoderForChipset(SpiChipset chipset, u32 speed_hz_override=0) FL_NO_EXCEPT
Look up the default SpiEncoder for a given chipset.
Definition spi.h:161

References addLedsSpiDispatch(), CHIPSET, CLOCK_PIN, DATA_PIN, and fl::SpiEncoder::spiEncoderForChipset().

+ Here is the call graph for this function: