Question: ` ` ` 5 . Modify / fix the following Arduino Mega code. Change the prescaler to run 4 times slower. And configure the watchdog

```
5. Modify/fix the following Arduino Mega code. Change the
prescaler to run 4 times slower. And configure the watchdog
to trigger an interrupt which toggles an LED connected to
board pin 4.
void setup(){
DDRB |=(15);
WDTCSR |=(1 WDCE)|(1 WDE);
WDTCSR =(1 WDE)|( WDPO);
sei();
}
void loop(){
delay(1000);
}
```
` ` ` 5 . Modify / fix the following Arduino Mega

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!