The code that ive put up is probably completely wrong.
But am i going the right way about it?
#include <EEPROM.h>
#include "EEPROMAnything.h"
struct config_t
{
char inData2[12]; // Allocate some space for the string
long alarm;
int mode;
} configuration;
void setup()
{
Serial.begin(9600);
EEPROM_readAnything(0, configuration);
// ...
}
void loop()
{
// let the user adjust their alarm settings
// let the user adjust their mode settings
// ...
Serial.println(inData2);
// if they push the "Save" button, save their configuration
if (digitalRead(13) == HIGH)
EEPROM_writeAnything(0, configuration);
}