Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // mais informacoes
- // http://drbitblog.wordpress.com/2014/04/10/watchdog-em-microcontroladores-atmega/
- #include <avr/wdt.h>
- void setup()
- {
- Serial.begin(9600);
- wdt_enable(WDTO_8S); // watchdog habilitado para overflow em 8 segundos
- Serial.println("Iniciado...");
- }
- void loop()
- {
- wdt_reset(); // reset do watcdog, comentar a linha para ver o reset do Arduino
- }
Add Comment
Please, Sign In to add comment