i've been trying to put an array in the eeprom and read it out( its part of a bigger code which would be too long to post) untill now i havent succeed. i cant find where my problem is? maybe the data type? i have no experience with the eeprom memory so i'm still figuring it all out
for(int i = 0; i < 4; i++){
safetyscode1[i]= ingavecode1[i];
EEPROM.write(50+i,safetyscode1[i]);
}
for(int i = 0; i < 4; i++){
EEPROM.get(50+i,safetyscode1[i]);
}
Serial.print(safetyscode1[i]);
the safetyscode1[i]= ingavecode1[i];
part is because the users who are going to use the lockers can insert their own code. "ingavecode" is the insertedcode and safetscode is the code that will be used later to chek when they want to open their locker.
for(int i = 0; i < 4; i++){
EEPROM.get(50+i,safetyscode1[i]);
Serial.print(safetyscode1[i]);
}
thanks for noticing it, not solving my problem tho