Add this controller to the linked list.
- Note
- Used with DeferRegister mode to explicitly add controller to list (for example,
fl::Channel via FastLED.add(ChannelPtr))
-
Safe to call multiple times - won't add if already in list
Definition at line 36 of file cled_controller.cpp.hpp.
36 {
37
38 #if SKETCH_HAS_LARGE_MEMORY
40 return;
41 }
42 #endif
43
44
45
48 return;
49 }
50
51
53 while (true) {
54 if (last == this) {
55 return;
56 }
57 if (last->
mPNext ==
nullptr) {
58 break;
59 }
61 }
63}
bool isInList() const FL_NO_EXCEPT
Check if this controller is in the linked list.
CLEDController * mPNext
pointer to the next LED controller in the linked list
static CLEDController * mPHead
pointer to the first LED controller in the linked list
CLEDController(RegistrationMode mode) FL_NO_EXCEPT
Protected constructor with registration mode.
References CLEDController(), fl::FL_NO_EXCEPT, isInList(), mPHead, and mPNext.
Referenced by CLEDController(), CLEDController(), and fl::Channel::addToDrawList().