forked from mhenstell/acw
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathConfig.pde
69 lines (61 loc) · 2.05 KB
/
Config.pde
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
public static class Config {
public static String HOST = "127.0.0.1";
public static int PORT = 58082;
public static int ADDRESSING_MODE = LEDDisplay.ADDRESSING_HORIZONTAL_NORMAL;
public static boolean ENABLE_GAMMA = true;
public static int WIDTH = 40;
public static int HEIGHT = 160;
public static float ZOOM = 4;
public static float BRIGHTNESS = 1.0;
public static float FRAMERATE = 30;
public static float MODE_TIMEOUT = 300;
public static color[] PALETTE = new color[] {
col(255,255,255),
col(170,11,5),
col(232,183,42),
col(75,166,0),
col(34,173,228),
col(136,8,103),
col(245,244,240),
col(130,21,14)
};
public static int[] STRIP_LOOKUP = new int[] {
18, 17, 16, 20, 21, 22, 23, 27,
25, 26, 24, 28, 30, 29, 9, 11,
8, 10, 12, 13, 15, 14, 1, 0,
3, 2, 5, 4, 6, 7, 33, 32,
35, 34, 38, 36, 39, 37, 31, 19
};
public static boolean[] SWAP_LOOKUP = new boolean[] {
false, false, false, false, false, false, false, false,
false, false, false, true, true, true, true, true,
false, false, true, true, true, true, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false
};
/*
public static int[] STRIP_LOOKUP = new int[] {
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1
};
public static boolean[] SWAP_LOOKUP = new boolean[] {
false, false, false, false, false, false, false, false,
false, false, false, true, true, true, true, true,
false, false, true, true, true, true, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false
};
*/
public static int col(int r, int g, int b, int a) {
return (a<<24) | (r<<16) | (g<<8) | b;
}
public static int col(int r, int g, int b) {
return col(r,g,b,255);
}
public static int col(int b) {
return col(b,b,b,255);
}
}