#ifndef EEStore_h #define EEStore_h #include #if defined(ARDUINO_ARCH_SAMD) || defined(ARDUINO_ARCH_RP2040) #include extern ExternalEEPROM EEPROM; #else #include #endif #define EESTORE_ID "DCC++" struct EEStoreData{ char id[sizeof(EESTORE_ID)]; int nTurnouts; int nSensors; int nOutputs; }; struct EEStore{ static EEStore *eeStore; EEStoreData data; static int eeAddress; static void init(); static void reset(); static int pointer(); static void advance(int); static void store(); static void clear(); static void dump(int); }; #endif