Created
August 3, 2012 20:56
-
-
Save jonmarkgo/3251449 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <EEPROM.h> | |
#include "EEPROMAnything.h" | |
struct User | |
{ | |
char * phonenumber; | |
} user; | |
User authUsers[3]; | |
User defUsers[3]; | |
void setup() | |
{ | |
Serial.begin(57600); | |
authUsers[0].phonenumber = "+12121234567"; | |
authUsers[1].phonenumber = "+14141234567"; | |
authUsers[2].phonenumber = "+13131234567"; | |
EEPROM_writeAnything(0, authUsers); | |
EEPROM_readAnything(0, defUsers); | |
for(int i = 0; i < 3; i++) { | |
Serial.println(defUsers[i].phonenumber); | |
} | |
} | |
void loop() | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment