| 8 | // FastLEDAdapter implementation |
| 9 | |
| 10 | FastLEDAdapter::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 | |
| 21 | fl::span<CRGB> FastLEDAdapter::getLEDs() { |
| 22 | CLEDController& controller = FastLED[mControllerIndex]; |