FastLED 3.9.15
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 34 of file adapter.cpp.hpp.

34 {
35 if (mHasSegment) {
37 }
38
40 return controller.size();
41}
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
CLEDController * controller
virtual int size() const FL_NOEXCEPT
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, mControllerIndex, mHasSegment, mSegmentEnd, and mSegmentStart.

Referenced by ~FastLEDAdapter().

+ Here is the caller graph for this function: