forked from ch570512/Qlockwork
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathEvent.h
More file actions
59 lines (50 loc) · 833 Bytes
/
Event.h
File metadata and controls
59 lines (50 loc) · 833 Bytes
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
58
59
/**
* Event.h
* Klasse für ein jährliches Event
*
* @mc Arduino/UNO
* @autor Manuel Bracher / manuel.bracher@gmail.com
* @version 1.0
* @created 02.01.15
*
* Versionshistorie:
* V 1.0: - Erstellt.
*/
#ifndef EVENT_H
#define EVENT_H
#include <Arduino.h>
#include "Colors.h"
#define LEN_EVT_STR 30
#define LEN_ANI_STR 15
const char sEvtRep[][4] PROGMEM = {
{ "5" }, // 00
{ "15" }, // 01
{ "30" }, // 02
{ "60" }, // 03
};
enum eEvtRep : uint8_t {
EVT_REP_5,
EVT_REP_15,
EVT_REP_30,
EVT_REP_60,
EVT_REP_COUNT
};
const uint8_t evtRepRate[] = {
5,
15,
30,
60
};
typedef struct event_s {
time_t time;
char txt[LEN_EVT_STR];
char animation[LEN_ANI_STR];
eColor color;
eEvtRep repRate;
bool enabled;
} event_t;
class Event {
public:
Event() {};
};
#endif //EVENT_H