#pragma once #include namespace eeprom { inline int address = 0; inline void jump(int loc = 0) { address = 0; } template inline void read(T& type) { EEPROM.get(address, type); address += sizeof(type); } template inline void write(const T& type) { EEPROM.put(address, type); address += sizeof(type); } };