FastLED 3.9.15
Loading...
Searching...
No Matches

◆ FastLEDAdapter()

fl::FastLEDAdapter::FastLEDAdapter ( u8 controllerIndex = 0)
explicit

Construct adapter wrapping the global FastLED object.

Parameters
controllerIndexIndex of the LED controller to use (default: 0) Use 0 for the first controller, 1 for second, etc.

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

11 : mControllerIndex(controllerIndex)
12 , mSegmentStart(0)
13 , mSegmentEnd(0)
14 , mHasSegment(false)
15{
16 // Initialize segment end to the number of LEDs in the controller
19}
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.