| 61 | // IFastLED interface implementation |
| 62 | |
| 63 | fl::span<CRGB> getLEDs() override { |
| 64 | if (mHasSegment) { |
| 65 | return fl::span<CRGB>(mLeds.data() + mSegmentStart, mSegmentEnd - mSegmentStart); |
| 66 | } |
| 67 | return fl::span<CRGB>(mLeds.data(), mNumLeds); |
| 68 | } |
| 69 | |
| 70 | size_t getNumLEDs() const override { |
| 71 | if (mHasSegment) { |