36. EEPROM Memory-Map Viewer

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

How do you plan to solve it?

 

 

Code

/*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);
}

 

Output

Video

Add a video of the output (know more)

 

 

 

 

 

Photo of Output

Add a photo of your hardware showing the output.

 

 

 

 

Screenshot of serial Terminal 

Add a Screenshot of the serial terminal showing the output.


 

Was this helpful?
Upvote
Downvote