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:
int a = 0;
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
value = EEPROM.read(i); //read position
// Result: serial monitor should appear : 0 0 / next line 1 1 ... /next line 256 256
I hope anyone can helpme !!!