Yeah, that was too much creative...I pressed the "Verify" buttom in the compiler and get no error so I thought that must be ok...
So right now I write in EEPROM like this for 2 users (my idea is to have 100... )
EEPROM.write(0, '6');
EEPROM.write(1, '7');
EEPROM.write(2, '2');
EEPROM.write(3, '0');
EEPROM.write(4, '2');
EEPROM.write(5, '6');
EEPROM.write(6, '2');
EEPROM.write(7, '6');
EEPROM.write(8, '0');
EEPROM.write(9, '1');
I try two different ways to read the EEPROM and assign values to my users arrays but neither works. This is the first one:
for(i=0; i<5; i++){
user1[i]=EEPROM.read(i);
user2[i]=EEPROM.read(i+5);
}
And this the second:
for(i=0; i<5; i++){
user1[i]=EEPROM.read(i);
}
for(z=0; z<5; z++){
user2[z]=EEPROM.read(i);
i++;
}
But when I enter the code in my keypad it doesnt recognize it. What surprise me the most is that if I just write one user in EEPROM it works. Thsi code works perfect:
EEPROM.write(0, '6');
EEPROM.write(1, '7');
EEPROM.write(2, '2');
EEPROM.write(3, '0');
EEPROM.write(4, '2');
Serial.println("Asignando...");
for(i=0; i<5; i++){
user1[i]=EEPROM.read(i);
}