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

23 {
24 if(m_Data) {
25 nLeds = (nLeds < 0) ? m_nLeds : nLeds;
26 nLeds = (nLeds > m_nLeds) ? m_nLeds : nLeds;
27 memset((void*)m_Data, 0, sizeof(struct CRGB) * nLeds);
28 }
29
30}
CRGB * m_Data
pointer to the LED data used by this controller
int m_nLeds
the number of LEDs in the LED data array

References m_Data, and m_nLeds.

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

+ Here is the caller graph for this function: