I'd like to store a four digit passcode into EEPROM. I'm thinking of doing something like the following:
char passcode[4] = EEPROM.read(1, 2, 3, 4)
Does this make sense? Is there a simple way to read EEPROM directly into an array?
I'd like to store a four digit passcode into EEPROM. I'm thinking of doing something like the following:
char passcode[4] = EEPROM.read(1, 2, 3, 4)
Does this make sense? Is there a simple way to read EEPROM directly into an array?
Does this make sense?
Yes. Will it work? No.
Is there a simple way to read EEPROM directly into an array?
Use a for loop to read a value for each element of the array.
Or use someone else's for-loop...
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1234477290/3#3