FastLED 3.9.15
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()
CFastLED FastLED
Global LED strip management instance.
static fl::Watchdog & watchdog()
Access the unified cross-platform watchdog timer.
void markCleanShutdown() FL_NOEXCEPT
void feed() FL_NOEXCEPT

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

740 {
741 return fl::Watchdog::instance();
742}
static Watchdog & instance() FL_NOEXCEPT

References fl::Watchdog::instance().

+ Here is the call graph for this function: