| 32 | } |
| 33 | |
| 34 | size_t FastLEDAdapter::getNumLEDs() const { |
| 35 | if (mHasSegment) { |
| 36 | return mSegmentEnd - mSegmentStart; |
| 37 | } |
| 38 | |
| 39 | CLEDController& controller = FastLED[mControllerIndex]; |
| 40 | return controller.size(); |
| 41 | } |
| 42 | |
| 43 | void FastLEDAdapter::show() { |
| 44 | FastLED.show(); |