FastLED 3.10.8
Loading...
Searching...
No Matches

◆ clear() [1/2]

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 508 of file FastLED.cpp.hpp.

508 {
509 if(writeData) {
510 showColor(CRGB(0,0,0), 0);
511 }
512 clearData();
513}
void clearData() FL_NO_EXCEPT
Clear out the local data array.
void showColor(const CRGB &color, fl::u8 scale) FL_NO_EXCEPT
Set all leds on all controllers to the given color/scale.
fl::CRGB CRGB
Definition crgb.h:25

References clearData(), FL_NO_EXCEPT, and showColor().

+ Here is the call graph for this function: