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

171 {
172 int x = 0;
173 CLEDController *pCur = CLEDController::head();
174 while( pCur) {
175 ++x;
176 pCur = pCur->next();
177 }
178 return x;
179}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:82
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: