FastLED 3.10.10
Loading...
Searching...
No Matches

◆ addLeds() [12/14]

template<ESPIChipsets CHIPSET, fl::u8 DATA_PIN, fl::u8 CLOCK_PIN, fl::EOrder RGB_ORDER, 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 1369 of file FastLED.h.

1369 {
1372 FL_STATIC_ASSERT(CHIP::IS_VALID, "Unsupported chipset");
1373 typedef typename CHIP::template CONTROLLER_CLASS_WITH_ORDER<RGB_ORDER>::ControllerType ControllerTypeWithOrder;
1374 static ControllerTypeWithOrder c;
1375 return addLeds(&c, data, nLedsOrOffset, nLedsIfOffset);
1376 }
::CLEDController & addLeds(::CLEDController *pLed, CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0) FL_NO_EXCEPT
Add a CLEDController instance to the world.
void busKeepAlive() FL_NO_EXCEPT
Definition bus_traits.h:159
#define FL_STATIC_ASSERT(...)

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

+ Here is the call graph for this function: