This program fills the EEPROM with Hex $AB or Decimal 171 and displays it on serial screen.
#include
int a = 0;
int value;
void setup()
{
Serial.begin(9600);
for (int i = 0; i < 512; i++)
EEPROM.write(i, 171);
}
void loop()
{
value = EEPROM.read(a);
Serial.print(a);
Serial.print("\t");
Serial.print(value);
Serial.println();
a = a + 1;
if (a == 512)
a = 0;
delay(500);
}
No comments:
Post a Comment