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

293 {
294 int x = 0;
296 while( pCur) {
297 ++x;
298 pCur = pCur->next();
299 }
300 return x;
301}
int x
Definition simple.h:92
CLEDController * next() FL_NOEXCEPT
Get the next controller in the linked list after this one.
static CLEDController * head() FL_NOEXCEPT
Get the first LED controller in the linked list of controllers.
fl::CLEDController CLEDController

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

+ Here is the call graph for this function: