How do you plan to solve it?
/*Paste your code here*/
#include<EEPROM.h>
int addr=0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
EEPROM.write(0,145);
for(int i=0;i<1024;i++){
EEPROM.write(i,2*i);}
//heading in the serial monitor
Serial.print("EEPROM MEMORY MAP");
Serial.println("ADDR || VALUE");
}
void loop() {
// put your main code here, to run repeatedly:
if(addr==1023){
Serial.print("--------------finish-----------");
}
int temp=EEPROM.read(addr);
//Serial.print("addr:");
Serial.print(addr);
Serial.print("|| ");
Serial.println(temp);
addr++;
delay(1000);
}
Add a photo of your hardware showing the output.
Add a Screenshot of the serial terminal showing the output.
