Hi.
Can't save data in my Arduino EEPROM. I've try with a MEGA 1280 and a Duemilanove: same results I went back to basics (EEPROM READ - EEPROM WRITE) and can't obtain results: even with the example (loop write - read) it seems work, but when i remove the write command, the result of my reading is 256 for every data.
Here is my code:
#include
int a = 0;
int value;
int i;
void setup()
{
Serial.begin(9600);
for ( i = 0; i < 256; i++) // 256 because it holds 1 byte only
{
EEPROM.write(i, i); // Write 0 in position 0, 1 in position 1 and so on
delay(5);
value = EEPROM.read(i); //read position
Serial.print(i);
Serial.print("\t");
Serial.print(value);
Serial.println();
delay(50);
// Result: serial monitor should appear : 0 0 / next line 1 1 ... /next line 256 256
}
}
void loop()
{
}
I hope anyone can helpme !!! =(