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

187 {
188 int x = 0;
189 CLEDController *pCur = CLEDController::head();
190 while( pCur) {
191 ++x;
192 pCur = pCur->next();
193 }
194 return x;
195}
int x
Definition simple.h:92
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: