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

◆ addLeds() [4/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 nLedsOrOffset,
int nLedsIfOffset = 0 )
inline

Add an SPI based CLEDController instance to the world (legacy path).

Definition at line 1277 of file FastLED.h.

1277 {
1279 // Instantiate the controller using ClockedChipsetHelper
1281 FL_STATIC_ASSERT(CHIP::IS_VALID, "Unsupported chipset");
1282 typedef typename CHIP::template CONTROLLER_CLASS_WITH_ORDER_AND_FREQ<RGB_ORDER, SPI_DATA_RATE>::ControllerType ControllerTypeWithFreq;
1283 static ControllerTypeWithFreq c;
1284 return addLeds(&c, data, nLedsOrOffset, nLedsIfOffset);
1285 }
::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: