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

◆ addLeds() [2/15]

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 453 of file FastLED.h.

453 {
454 // Instantiate the controller using ClockedChipsetHelper
456 typedef typename CHIP::template CONTROLLER_CLASS_WITH_ORDER_AND_FREQ<RGB_ORDER, SPI_DATA_RATE>::ControllerType ControllerTypeWithFreq;
457 static_assert(CHIP::IS_VALID, "Unsupported chipset");
458 static ControllerTypeWithFreq c;
459 return addLeds(&c, data, nLedsOrOffset, nLedsIfOffset);
460 }
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(), CHIPSET, CLOCK_PIN, and DATA_PIN.

+ Here is the call graph for this function: