-
Notifications
You must be signed in to change notification settings - Fork 0
/
definitions.h
56 lines (43 loc) · 1.18 KB
/
definitions.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
#ifndef DEFINITIONS_H_
#define DEFINITIONS_H_
//////////////////////////////////////////////////////
// define's the button's pins
#define BUTTON_TOPLEFT D6
#define BUTTON_TOPRIGHT D4
#define BUTTON_BOTTOMLEFT D5
#define BUTTON_BOTTOMRIGHT D3
#define BUTTON_SNOOZE D2
#define LAST_PRESSED_LENGTH 10
#define CLEAR 100
#define TOPLEFT 101
#define TOPRIGHT 102
#define BOTTOMLEFT 103
#define BOTTOMRIGHT 104
#define TOP 105
#define BOTTOM 106
#define X 107
//////////////////////////////////////////////////////
// Section used exclusively by Simon
#define DODISPLAY 1
#define DOBUTTONS 2
#define DOCHECKS 3
#define PASSED 4
#define FAILED 5
#define R 10 // r for rounds
#define SIMONTOPLEFT 1
#define SIMONTOPRIGHT 2
#define SIMONBOTTOMLEFT 3
#define SIMONBOTTOMRIGHT 4
#define SIMONBUTTON_TOPLEFT 6
#define SIMONBUTTON_TOPRIGHT 4
#define SIMONBUTTON_BOTTOMLEFT 5
#define SIMONBUTTON_BOTTOMRIGHT 3
#define SIMONBUTTON_SNOOZE 2
//////////////////////////////////////////////////////
// Section for Alarm state definitions
#define ALARM_NORMAL 0
#define ALARM_FLASH 1
#define ALARM_TRIGGER 2
#define ALARM_FLASH_COUNT 4
#define ALARM_TRIGGER_COUNT 60
#endif