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

◆ addLeds() [2/14]

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>
::CLEDController & CFastLED::addLeds ( CRGB * data,
int nLeds,
fl::Esp32SpiBus spiBus )
inline

Add an SPI controller on a selected ESP-IDF host.

Note
SPI1 is reserved for flash/PSRAM; use SPI2 or SPI3.

Definition at line 1290 of file FastLED.h.

1290 {
1293 FL_STATIC_ASSERT(CHIP::IS_VALID, "Unsupported chipset");
1294 typedef typename CHIP::template CONTROLLER_CLASS_WITH_ORDER_AND_FREQ<RGB_ORDER, SPI_DATA_RATE>::ControllerType ControllerTypeWithFreq;
1295 static ControllerTypeWithFreq c;
1296 c.setSpiBus(spiBus);
1297 return addLeds(&c, data, nLeds, 0);
1298 }
::CLEDController & addLeds(::CLEDController *pLed, CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
Add a CLEDController instance to the world.
void busKeepAlive() FL_NO_EXCEPT
Definition bus_traits.h:123
#define FL_STATIC_ASSERT(...)

References addLeds(), fl::busKeepAlive(), and FL_STATIC_ASSERT.

+ Here is the call graph for this function: