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 24 of file cled_controller.cpp.

24 {
25 if(m_Data) {
26 nLeds = (nLeds < 0) ? m_nLeds : nLeds;
27 nLeds = (nLeds > m_nLeds) ? m_nLeds : nLeds;
28 fl::memfill((void*)m_Data, 0, sizeof(struct CRGB) * nLeds);
29 }
30
31}
CRGB * m_Data
pointer to the LED data used by this controller
int m_nLeds
the number of LEDs in the LED data array
void * memfill(void *ptr, int value, fl::size num)
Definition memfill.h:11

References m_Data, m_nLeds, and fl::memfill().

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

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