themactep.com

A home of miscellaneous projects by Paul Philippov.

Notes

How to use Arduino watchdog

#include <avr/wdt.h>

void setup() {
  wdt_enable(WDTO_2S);
  //...
}

void loop() {
  wdt_reset();
  //...
}