MCPcopy Create free account
hub / github.com/FastLED/FastLED / FastLEDAdapter

Method FastLEDAdapter

src/fl/control/wled/adapter.cpp.hpp:10–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8// FastLEDAdapter implementation
9
10FastLEDAdapter::FastLEDAdapter(u8 controllerIndex)
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
17 CLEDController& controller = FastLED[mControllerIndex];
18 mSegmentEnd = controller.size();
19}
20
21fl::span<CRGB> FastLEDAdapter::getLEDs() {
22 CLEDController& controller = FastLED[mControllerIndex];

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected