Hello everyone!I'm trying to learn but i found enough difficulties about this board.Especially i 've got difficulties because i can't debug my code.
Could you help me for something?How can i write a string into the eeprom and after that how can i read it from memory???
Can you propose me any good website or book to make a start??
When you are reading back from EEPROM you are incrementing the address twice:
void __read_EEPROM( ) {
int _addrByte = 0;
String str;
int value;
while( _addrByte++ != 300 ) { //// HERE
value = EEPROM.read( _addrByte );
str += (char)(value);
_addrByte++; ///// And HERE
}
Serial.print(str);
}
Take the ++ off the first one. You may also want to add: if (value == 0) break; before str += (char)(value);. That way you won't put all 300 characters into str even when the string is only 20 characters long.