FastLED 3.10.10
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 439 of file FastLED.cpp.hpp.

439 {
440 int x = 0;
442 while( pCur) {
443 ++x;
444 pCur = pCur->next();
445 }
446 return x;
447}
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: