I'm trying to store four items to EEPROM. I can do one item no problem, I just don't know how to make the jump to multiple items.
My code:
#include <EEPROM.h>
char sgrpID[31] = "acpilot's arduino";
char addrID[51] = "123 any street rd";
char zpcdID[11] = "12345";
char gwayID[31] = "what a cool toy!";
void setup()
{
Serial.begin(9600);
for (int i = 0; i < 6; i++) {
EEPROM.write(i, sgrpID[i]);
EEPROM.write(i, addrID[i]);
EEPROM.write(i, zpcdID[i]);
EEPROM.write(i, gwayID[i]);
}
}
void loop() {
Serial.println(sgrpID);
Serial.println(addrID);
Serial.println(zpcdID);
Serial.println(gwayID);
delay(99999);
}
I want to be able to call on these in a sketch and post them to a db along with dynamic data of some flavor (TBD).
Am on the right path? Any help, corrections, or general guidance is appreciated. I've moved beyond the "novice" stage of basic Arduino programming but an completely new to EEPROM. If in doubt, SLOWER AND LOUDER is by far the best way to communicate key EEPROM concepts to me.
I have reviewed the Arduino EEPROM library but I was reading Greek. I keep reading it and I'm sure at somepoint I'll recognize a pattrn and start to "get it."