forked from Beanow/Arduino-Shift-Light
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.h
57 lines (42 loc) · 881 Bytes
/
Config.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef Config_h
#define Config_h
#include <EEPROMAnything.h>
#include "_defines.h"
#include "Profile.h"
#define EEPROM_MAGIC_BYTE 0x55
class Config {
public:
Profile* newProfile();
uint8_t getProfileCount();
uint8_t getCurrentProfileIndex();
void deleteProfile(Profile* profile);
void setCurrentProfile(uint8_t profileIndex);
bool
RPMBuffer;
int8_t
RPMMeasureMode;
uint8_t
PPR,
RPMStep,
FullSegment1,
FullSegment2,
HalfSegment1,
HalfSegment2,
PixelBrightness,
DisplayBrightness;
uint16_t
RPMStationary;
Profile
*Profiles = NULL,
*CurrentProfile;
void
load(),
save(),
reset();
private:
void applyBulk(bool read);
uint8_t
profileCount,
currentProfileIndex;
};
#endif