Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <avr\wdt.h>
- void setup() {
- Serial.begin(9600);
- // set watchdog to 8s
- wdt_enable(WDTO_8S);
- Serial.println("V setupe");
- }
- void loop() {
- // watchdog reset
- wdt_reset();
- digitalWrite(6, HIGH);
- Serial.println("ZAP");
- delay(10000);
- digitalWrite(6, LOW);
- Serial.println("VYP");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement