From 2d7d728e184f24961e4a0871f4d5bed3e2fe652a Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Mon, 23 Oct 2017 14:16:27 +0200 Subject: Moved everything into the new REPO --- memoryAccess.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 memoryAccess.h (limited to 'memoryAccess.h') diff --git a/memoryAccess.h b/memoryAccess.h new file mode 100644 index 0000000..048ae86 --- /dev/null +++ b/memoryAccess.h @@ -0,0 +1,25 @@ +/* + memoryAccess.h - Library for easy writing to the IOT-ClapSensor EEPROM +*/ +#ifndef memoryAccess_h +#define memoryAccess_h + +#include "Arduino.h" + +class memoryAccess { + public: + void init(); + bool writeAscii(String varName, String data); + String readAscii(String varName); + void commit(); + void dump(); + private: + struct memoryAdress getAdress(String varName); +}; + +struct memoryAdress { + int startPos; + int endPos; +}; + +#endif -- cgit v1.2.3