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

◆ clear()

void fl::WLEDClient::clear ( bool writeToStrip = false)

Clear all LEDs.

Parameters
writeToStripIf true, immediately writes to strip (calls show)

Sets all LEDs to black/off. If writeToStrip is true, also calls controller->show() to update the physical strip.

Definition at line 44 of file client.cpp.hpp.

44 {
45 FL_DBG("WLEDClient: clear(writeToStrip=" << (writeToStrip ? "true" : "false") << ")");
46
47 if (!mController) {
48 return;
49 }
50
51 mController->clear(writeToStrip);
52}
fl::shared_ptr< IFastLED > mController
Definition client.h:148
#define FL_DBG
Definition log.h:388

References FL_DBG, and mController.