-
Notifications
You must be signed in to change notification settings - Fork 1
/
0_defines.ino
61 lines (49 loc) · 1 KB
/
0_defines.ino
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
60
61
#include <PocketStar.h>
#define WIDTH 96
#define HEIGHT 64
#define i8 int8_t
#define i16 int16_t
#define u8 uint8_t
#define u16 uint16_t
typedef void (* Callback) ();
namespace buttons {
enum buttons {
up, down, right, left,
a, b
};
};
#define DEBOUNCE_UP 0.2
#define DEBOUNCE_DOWN 0.2
#define DEBOUNCE_RIGHT 0.2
#define DEBOUNCE_LEFT 0.2
#define DEBOUNCE_A 0.2
#define DEBOUNCE_B 0.2
namespace faces {
enum faces {
top, bottom,
right, left,
front, back
};
};
namespace directions {
enum directions {
clockWise,
counterClockWise
};
};
u8 drawLocations[6][2] = {
{ 30, 5 }, // top
{ 30, 41 }, // bottom
{ 48, 23 }, // right
{ 12, 23 }, // left
{ 30, 23 }, // front
{ 66, 23 }, // back
};
u16 faceColors[6] = {
WHITE_16b, // top
YELLOW_16b, // bottom
RED_16b, // right
ORANGE_16b, // left
GREEN_16b, // front
BLUE_16b, // back
};