87. Watchdog Fundamentals

Question.4

Consider the following Arduino UNO code and circuit diagram. 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_2S);
}

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

Select Answer