What is the objective of the code given below if it is executed on the Arduino Uno?
A. Fill EEPROM with 1’s
B. Fill EEPROM with 0’s
C. Clear EEPROM
D. Export EEPROM data
Code:
#include<EEPROM.h>
int pin=13;
void setup() {
pinMode(pin,OUTPUT);
Serial.begin(9600);
}
void loop() {
for(int i=0;i<EEPROM.length();i++) {
EEPROM.write(i, 1);
}
digitalWrite(pin,HIGH);
exit(0);
}
B. Fill EEPROM with 0’s
C. Clear EEPROM
D. Export EEPROM data