FastLED 3.10.8
Loading...
Searching...
No Matches

◆ getNumLEDs()

size_t fl::FastLEDAdapter::getNumLEDs ( ) const
overridevirtual

Get the number of LEDs.

Returns
Number of LEDs in the current context (full array or segment)

Implements fl::IFastLED.

Definition at line 43 of file adapter.cpp.hpp.

43 {
44 if (mHasSegment) {
46 }
47
49 return controller.size();
50}
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
CLEDController * controller
VIRTUAL_IF_NOT_AVR int size() const FL_NO_EXCEPT
How many LEDs does this controller manage?
size_t mSegmentEnd
Definition adapter.h:72
size_t mSegmentStart
Definition adapter.h:71
fl::CLEDController CLEDController

References controller, FastLED, fl::FL_NO_EXCEPT, mControllerIndex, mHasSegment, mSegmentEnd, and mSegmentStart.

Referenced by ~FastLEDAdapter().

+ Here is the caller graph for this function: