FastLED 3.10.8
Loading...
Searching...
No Matches

◆ count()

int CFastLED::count ( )

Get how many controllers have been registered.

Returns
the number of controllers (strips) that have been added with addLeds()

Definition at line 431 of file FastLED.cpp.hpp.

431 {
432 int x = 0;
434 while( pCur) {
435 ++x;
436 pCur = pCur->next();
437 }
438 return x;
439}
int x
Definition simple.h:92
static CLEDController * head() FL_NO_EXCEPT
Get the first LED controller in the linked list of controllers.
CLEDController * next() FL_NO_EXCEPT
Get the next controller in the linked list after this one.
fl::CLEDController CLEDController

References FL_NO_EXCEPT, fl::CLEDController::head(), fl::CLEDController::next(), and x.

+ Here is the call graph for this function: