86. Watchdog Operation

Question.4

Consider the following code snippet. What will be the behavior of the LED connected to Pin 12?

Code

#include <avr/wdt.h>

#define LED_PIN 12

void setup() {
 pinMode(LED_PIN, OUTPUT);
 digitalWrite(LED_PIN, LOW);
 delay(3000);
 wdt_enable(WDTO_1S);
}

void loop() {
 digitalWrite(LED_PIN, HIGH);
 delay(2000);
 wdt_reset();
}

Select Answer