diff options
author | Jakob Stendahl <jakst070500@ntvgs.no> | 2017-10-23 14:16:27 +0200 |
---|---|---|
committer | Jakob Stendahl <jakst070500@ntvgs.no> | 2017-10-23 14:16:27 +0200 |
commit | 2d7d728e184f24961e4a0871f4d5bed3e2fe652a (patch) | |
tree | 52147439c27002cc5ccabef86fd8156dc50a588f /memoryAccess.h | |
parent | c962ad1b2ade35022cc614dd4cc0e5e6d17ddb91 (diff) | |
download | Luxcena-cs-2d7d728e184f24961e4a0871f4d5bed3e2fe652a.tar.gz Luxcena-cs-2d7d728e184f24961e4a0871f4d5bed3e2fe652a.zip |
Moved everything into the new REPO
Diffstat (limited to 'memoryAccess.h')
-rw-r--r-- | memoryAccess.h | 25 |
1 files changed, 25 insertions, 0 deletions
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 |