-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheprom.h
31 lines (30 loc) · 850 Bytes
/
eprom.h
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
27
28
29
30
31
#include <EEPROM.h>
#include <Arduino.h>
/*******************************
EEPROM*/
class EpromEntry {
public:
void* Content;
byte Length;
EpromEntry* Next = NULL;
};
class Eprom {
public:
static EpromEntry* Data;
static void RestoreDefaults();
static void Load();
static void Store();
static void Add(void*content, byte len);
static void Add(int*content);
static void Add(byte*content);
static void Add(bool*content);
static void Add(float*content);
static void Add(double*content);
static void Add(long*content);
static void Add(int*content, byte len);
static void Add(byte*content, byte len);
static void Add(bool*content, byte len);
static void Add(float*content, byte len);
static void Add(double*content, byte len);
static void Add(long*content, byte len);
};