| Command | Arguments | Return Value | Operation |
|---|---|---|---|
WDT() | None | void | Refreshes the Watchdog before its timeout expires. |
void setup() { #if defined(__AVR_ATmega128__) WDT_ENABLE(WDT_900MS); // Set the watchdog timeout and start operation. #elif defined(__AVR_ATmega2560__) WDT_ENABLE(WDT_1S); // Set the watchdog timeout and start operation. #endif } void loop() { WDT(); // Refresh the watchdog before its timeout expires. }
WDT() where it always executes unconditionally.