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

155 {
156 int x = 0;
157 CLEDController *pCur = CLEDController::head();
158 while( pCur) {
159 ++x;
160 pCur = pCur->next();
161 }
162 return x;
163}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
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: