forked from bracci/Qlockthree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Event.h
47 lines (36 loc) · 761 Bytes
/
Event.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
/**
* Event.h
* Klasse für ein jährliches Event
*
* @mc Arduino/UNO
* @autor Manuel Bracher / [email protected]
* @version 1.0
* @created 02.01.15
*
* Versionshistorie:
* V 1.0: - Erstellt.
*/
#ifndef EVENT_H
#define EVENT_H
#include "Effects.h"
#include "Configuration.h"
#include "Colors.h"
#include "Settings.h"
extern Settings settings;
#define DURATION_BM 15
#define TICKER_SPEED 6
#define DURATION_ANI_BM (DURATION_BM/5)
struct Event
{
byte _month;
byte _date;
const char* _txt;
Effects::eEffects _effect;
eColors _color;
};
namespace EVENT {
void show(const Event * const e);
bool checkDate(const Event * const e, byte actDate, byte actMonth);
extern int nbrOfEvts;
}
#endif //EVENT_H