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

◆ addLeds() [5/14]

template<ESPIChipsets CHIPSET, fl::u8 DATA_PIN, fl::u8 CLOCK_PIN, fl::Bus B = fl::Bus::AUTO>
static ::CLEDController & CFastLED::addLeds ( CRGB * data,
int nLedsOrOffset,
int nLedsIfOffset = 0 )
inlinestatic

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

Definition at line 1301 of file FastLED.h.

1301 {
1304 FL_STATIC_ASSERT(CHIP::IS_VALID, "Unsupported chipset");
1305 typedef typename CHIP::ControllerType ControllerType;
1306 static ControllerType c;
1307 return addLeds(&c, data, nLedsOrOffset, nLedsIfOffset);
1308 }
::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: