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

◆ clear()

void CFastLED::clear ( bool writeData = false)

Clear the leds, wiping the local array of data.

Optionally you can also send the cleared data to the LEDs.

Parameters
writeDatawhether or not to write out to the leds as well

Definition at line 219 of file FastLED.cpp.

219 {
220 if(writeData) {
221 showColor(CRGB(0,0,0), 0);
222 }
223 clearData();
224}
void showColor(const struct CRGB &color, uint8_t scale)
Set all leds on all controllers to the given color/scale.
Definition FastLED.cpp:177
void clearData()
Clear out the local data array.
Definition FastLED.cpp:226

References clearData(), and showColor().

+ Here is the call graph for this function: