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

◆ addLeds() [3/16]

template<ESPIChipsets CHIPSET, uint8_t DATA_PIN, uint8_t CLOCK_PIN, EOrder RGB_ORDER, uint32_t 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 497 of file FastLED.h.

497 {
498 // Instantiate the controller using ClockedChipsetHelper
500 typedef typename CHIP::template CONTROLLER_CLASS_WITH_ORDER_AND_FREQ<RGB_ORDER, SPI_DATA_RATE>::ControllerType ControllerTypeWithFreq;
501 static_assert(CHIP::IS_VALID, "Unsupported chipset");
502 static ControllerTypeWithFreq c;
503 return addLeds(&c, data, nLedsOrOffset, nLedsIfOffset);
504 }
static CLEDController & addLeds(CLEDController *pLed, struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
Add a CLEDController instance to the world.
Definition FastLED.cpp:92

References addLeds().

+ Here is the call graph for this function: