FastLED 3.9.15
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 165 of file FastLED.cpp.

165 {
166 int x = 0;
167 CLEDController *pCur = CLEDController::head();
168 while( pCur) {
169 ++x;
170 pCur = pCur->next();
171 }
172 return x;
173}
int x
Definition Audio.ino:71
CLEDController * next()
Get the next controller in the linked list after this one.
static CLEDController * head()
Get the first LED controller in the linked list of controllers.

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

+ Here is the call graph for this function: