aboutsummaryrefslogtreecommitdiff
path: root/memoryAccess.h
diff options
context:
space:
mode:
Diffstat (limited to 'memoryAccess.h')
-rw-r--r--memoryAccess.h25
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