blob: 8f593fd1e776db97c24e1b689520361fdc3bee2d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*
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();
void write(int location, byte val);
void commit();
bool writeAscii(String varName, String data);
String readAscii(String varName);
void dump();
private:
struct memoryAdress getAdress(String varName);
};
struct memoryAdress {
int startPos;
int endPos;
};
#endif
|