Skip to content

Instantly share code, notes, and snippets.

@jonmarkgo
Created August 3, 2012 20:56
Show Gist options
  • Save jonmarkgo/3251449 to your computer and use it in GitHub Desktop.
Save jonmarkgo/3251449 to your computer and use it in GitHub Desktop.
#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