#include <avr/wdt.h>
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Start programu");
wdt_enable(WDTO_2S);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("Loop jede");
wdt_reset();
for (;;)
{
if (millis() < 2000)
{
wdt_reset();
}
}
}