-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsegement.py
79 lines (77 loc) · 1.82 KB
/
segement.py
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
class Colors(object):
black = (0, 0, 0)
red_on = (255, 0, 0)
red_off = (51, 0, 0)
yellow_on = (255, 255, 0)
yellow_off = (51, 51, 0)
orange = (255, 128, 0)
DESCRIPTION = {
"time": {
"top": {
"color_on": Colors.red_on,
"color_off": Colors.red_off,
"x5": {
"row": 1,
"offset": 0,
"amount": 4,
"width": 39
},
"x1": {
"row": 2,
"offset": 0,
"amount": 4,
"width": 39
}
},
"bottom": {
"color_on": Colors.yellow_on,
"color_off": Colors.yellow_off,
"x5": {
"row": 3,
"offset": 0,
"amount": 11,
"width": 14
},
"x1": {
"row": 4,
"offset": 0,
"amount": 4,
"width": 39
}
}
},
"date": {
"top": {
"color_on": Colors.yellow_on,
"color_off": Colors.yellow_off,
"x5": {
"row": 1,
"offset": 0,
"amount": 6,
"width": 26
},
"x1": {
"row": 2,
"offset": 0,
"amount": 4,
"width": 39
}
},
"bottom": {
"color_on": Colors.red_on,
"color_off": Colors.red_off,
"x5": {
"row": 3,
"offset": 0,
"amount": 2,
"width": 79
},
"x1": {
"row": 4,
"offset": 0,
"amount": 4,
"width": 39
}
}
}
}