-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathLightConfiguration.h
86 lines (66 loc) · 2.24 KB
/
LightConfiguration.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// w and h are screen width and height.
// Adjust these macros to suit.
// Top right corner.
#define LIGHT_STATUS_X_MIN(w) (w * .95)
#define LIGHT_STATUS_X_MAX(w) (w * .98)
#define LIGHT_STATUS_Y_MIN(h) (h * .02)
#define LIGHT_STATUS_Y_MAX(h) (h * .07)
// Top left corner.
#define LIGHT_0_X_MIN(w) (w * .02)
#define LIGHT_0_X_MAX(w) (w * .05)
#define LIGHT_0_Y_MIN(h) (h * .02)
#define LIGHT_0_Y_MAX(h) (h * .07)
// Row across the bottom.
#define LIGHT_1_X_MIN(w) (w * .02)
#define LIGHT_1_X_MAX(w) (w * .17)
#define LIGHT_1_Y_MIN(h) (h * .95)
#define LIGHT_1_Y_MAX(h) (h * .98)
#define LIGHT_2_X_MIN(w) (w * .22)
#define LIGHT_2_X_MAX(w) (w * .37)
#define LIGHT_2_Y_MIN(h) (h * .95)
#define LIGHT_2_Y_MAX(h) (h * .98)
#define LIGHT_3_X_MIN(w) (w * .42)
#define LIGHT_3_X_MAX(w) (w * .57)
#define LIGHT_3_Y_MIN(h) (h * .95)
#define LIGHT_3_Y_MAX(h) (h * .98)
#define LIGHT_4_X_MIN(w) (w * .62)
#define LIGHT_4_X_MAX(w) (w * .77)
#define LIGHT_4_Y_MIN(h) (h * .95)
#define LIGHT_4_Y_MAX(h) (h * .98)
#define LIGHT_5_X_MIN(w) (w * .82)
#define LIGHT_5_X_MAX(w) (w * .97)
#define LIGHT_5_Y_MIN(h) (h * .95)
#define LIGHT_5_Y_MAX(h) (h * .98)
// w and h are screen width and height.
// Adjust these macros to suit.
// Top right corner.
#define LIGHT_STATUS_X_MIN(w) (w * .95)
#define LIGHT_STATUS_X_MAX(w) (w * .98)
#define LIGHT_STATUS_Y_MIN(h) (h * .02)
#define LIGHT_STATUS_Y_MAX(h) (h * .07)
// Top left corner.
#define LIGHT_0_X_MIN(w) (w * .02)
#define LIGHT_0_X_MAX(w) (w * .05)
#define LIGHT_0_Y_MIN(h) (h * .02)
#define LIGHT_0_Y_MAX(h) (h * .07)
// Row across the bottom.
#define LIGHT_1_X_MIN(w) (w * .02)
#define LIGHT_1_X_MAX(w) (w * .17)
#define LIGHT_1_Y_MIN(h) (h * .95)
#define LIGHT_1_Y_MAX(h) (h * .98)
#define LIGHT_2_X_MIN(w) (w * .22)
#define LIGHT_2_X_MAX(w) (w * .37)
#define LIGHT_2_Y_MIN(h) (h * .95)
#define LIGHT_2_Y_MAX(h) (h * .98)
#define LIGHT_3_X_MIN(w) (w * .42)
#define LIGHT_3_X_MAX(w) (w * .57)
#define LIGHT_3_Y_MIN(h) (h * .95)
#define LIGHT_3_Y_MAX(h) (h * .98)
#define LIGHT_4_X_MIN(w) (w * .62)
#define LIGHT_4_X_MAX(w) (w * .77)
#define LIGHT_4_Y_MIN(h) (h * .95)
#define LIGHT_4_Y_MAX(h) (h * .98)
#define LIGHT_5_X_MIN(w) (w * .82)
#define LIGHT_5_X_MAX(w) (w * .97)
#define LIGHT_5_Y_MIN(h) (h * .95)
#define LIGHT_5_Y_MAX(h) (h * .98)