eepromclass.h 494 B

123456789101112131415161718192021
  1. #ifndef EEPROMclass_h
  2. #define EEPROMclass_h
  3. #include <Arduino.h>
  4. #include <EEPROM.h>
  5. class EEPROMclass
  6. {
  7. private:
  8. int eeprom_size = 1025;
  9. bool isempty = false;
  10. public:
  11. EEPROMclass();
  12. void RunSetup();
  13. void clearEEPROM();
  14. int readEEPROMint(int index);
  15. void writeEEPROMint(int index, int value);
  16. int writeStringToEEPROM(int addrOffset, const String &strToWrite);
  17. int readStringFromEEPROM(int addrOffset, String *strToRead);
  18. };
  19. #endif