FastLED 3.9.15
|
|
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.
pLed | the led controller being added |
data | base pointer to an array of CRGB data structures |
nLedsOrOffset | number of leds (3 argument version) or offset into the data array |
nLedsIfOffset | number of leds (4 argument version) |
Definition at line 92 of file FastLED.cpp.
References FastLED, CLEDController::getMaxRefreshRate(), CLEDController::init(), fl::EngineEvents::onStripAdded(), and CLEDController::setLeds().
Referenced by addLeds().