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

◆ clearLedDataInternal()

void CLEDController::clearLedDataInternal ( int nLeds = -1)

Zero out the LED data managed by this controller.

Definition at line 59 of file cled_controller.cpp.hpp.

59 {
60 // On common code that runs on avr, every byte counts.
61 fl::u16 n = nLeds >= 0 ? static_cast<fl::u16>(nLeds) : static_cast<fl::u16>(mLeds.size());
62 if (mLeds.data()) {
63 fl::memset((void*)mLeds.data(), 0, sizeof(CRGB) * n);
64 }
65
66}
virtual int size() const FL_NOEXCEPT
How many LEDs does this controller manage?
fl::span< CRGB > mLeds
span of LED data used by this controller

References fl::memset(), and mLeds.

Referenced by CFastLED::clearData(), and clearLeds().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: