EEPROM Memory-Map Viewer

Solving Approach

How do you plan to solve it?

 

 

Code

/*Paste your code here*/
#include <EEPROM.h>
uint8_t data[16];
uint8_t current_data;
void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  for(int i=0;i<16;i++){
    data[i] = random(0,256);
    EEPROM.update(i, data[i]);
  }
}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.println("Address:    | Data (hex)");
  for(int i=0;i<1024;i+=16){
    Serial.print("0x");
    Serial.print(i, HEX);
    Serial.print("        | ");
    for(int j=0;j<16;j++){
      current_data = EEPROM.read(i+j);
      if(current_data < 0x10){
        Serial.print("0");
      }
      Serial.print(current_data, HEX);
      Serial.print(" ");
      delay(50);
    }
    Serial.println();
    delay(100);
  }
  while(1);
}

 

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.


 

Upvote
Downvote

Submit Your Solution

Note: Once submitted, your solution goes public, helping others learn from your approach!