FastLED 3.10.8
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 45 of file client.cpp.hpp.

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

References FL_DBG, fl::FL_NO_EXCEPT, and mController.