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

◆ addLeds()

::CLEDController & CFastLED::addLeds ( ::CLEDController * pLed,
CRGB * data,
int nLedsOrOffset,
int nLedsIfOffset = 0 )
static

Add a CLEDController instance to the world.

Exposed to the public to allow people to implement their own CLEDController objects or instances. There are two ways to call this method (as well as the other addLeds() variations). The first is with 3 arguments, in which case the arguments are the controller, a pointer to led data, and the number of leds used by this controller. The second is with 4 arguments, in which case the first two arguments are the same, the third argument is an offset into the CRGB data where this controller's CRGB data begins, and the fourth argument is the number of leds for this controller object.

Parameters
pLedthe led controller being added
database pointer to an array of CRGB data structures
nLedsOrOffsetnumber of leds (3 argument version) or offset into the data array
nLedsIfOffsetnumber of leds (4 argument version)
Returns
a reference to the added controller

Referenced by _FL_MAP_CLOCKED_CHIPSET().

+ Here is the caller graph for this function: