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

◆ watchdog()

fl::Watchdog & CFastLED::watchdog ( )
static

Access the unified cross-platform watchdog timer.

Returns
Reference to the Watchdog singleton
Note
See fl/wdt/watchdog.h and FastLED#2731. Tier 0 surface is universal.
void setup() {
FastLED.watchdog().begin(15000); // arm with 15s timeout
if (FastLED.watchdog().isInSafeMode()) { while (true) {} }
}
void loop() {
doWork();
}
void setup()
void loop()
static fl::Watchdog & watchdog() FL_NO_EXCEPT
Access the unified cross-platform watchdog timer.
void feed() FL_NO_EXCEPT
void markCleanShutdown() FL_NO_EXCEPT
CFastLED FastLED
Global LED strip management instance.

Definition at line 939 of file FastLED.cpp.hpp.

939 {
940 return fl::Watchdog::instance();
941}
static Watchdog & instance() FL_NO_EXCEPT

References FL_NO_EXCEPT, and fl::Watchdog::instance().

+ Here is the call graph for this function: