FastLED 3.9.15
Loading...
Searching...
No Matches

◆ addLeds() [3/16]

template<ESPIChipsets CHIPSET, fl::u8 DATA_PIN, fl::u8 CLOCK_PIN, EOrder RGB_ORDER, fl::u32 SPI_DATA_RATE>
LPD8806Controller WS2803Controller P9813Controller APA102Controller APA102ControllerHD APA102ControllerHD SK9822ControllerHD CLEDController & CFastLED::addLeds ( struct CRGB * data,
int nLedsOrOffset,
int nLedsIfOffset = 0 )
inline

Add an SPI based CLEDController instance to the world.

Definition at line 520 of file FastLED.h.

520 {
521 // Instantiate the controller using ClockedChipsetHelper
523 typedef typename CHIP::template CONTROLLER_CLASS_WITH_ORDER_AND_FREQ<RGB_ORDER, SPI_DATA_RATE>::ControllerType ControllerTypeWithFreq;
524 static_assert(CHIP::IS_VALID, "Unsupported chipset");
525 static ControllerTypeWithFreq c;
526 return addLeds(&c, data, nLedsOrOffset, nLedsIfOffset);
527 }
static CLEDController & addLeds(CLEDController *pLed, struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
Add a CLEDController instance to the world.
Definition FastLED.cpp:110

References addLeds().

+ Here is the call graph for this function: