billys7
1
Hi,
I want to read eeprom, and store the values on an array.
I can read eeprom with:
for (byte i = 67; i <= 192; i++) // from 67 to 192
Serial.println (EEPROM.read(i)); //print them
but i cannot save it on an array.
For example i want to store
EEPROM.read (67) to S[1]
.
.
.
.
EEPROM.read (i) to S[n]
How can i do this?
Thank you!
billys7
3
Ok.
How can i do this with 'for' ?
Shpaget
4
int n = 1; //or n = 0 if you want to start from the beginning of the array
for (int i = 67; i <= 192; i++)
{
S[n] = EEPROM.read (i);
n++;
}
BTW, S is a shitty name for an array.
32teeth
5
for (int i = 0; i <= 125; i++)
{
S[i] = EEPROM.read (i + 67);
}