-
Notifications
You must be signed in to change notification settings - Fork 0
/
LED_bars_layout.py
63 lines (53 loc) · 969 Bytes
/
LED_bars_layout.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
# Range, where the daemon should expect the bars
bars_range_x = range(4)
bars_range_y = range(5)
# 'xs' is the range of x-coordinates to draw on
# IAQ color codes provided by Bosch
# g: Good air
# a: Average air
# l: Little bad air
# b: Bad air
# w: Worse air
# v: Very bad air
colors_air = {
'xs': range(1,2),
'g': [0,227,0,1],
'a': [255,255,0,2],
'l': [255,125,0,3],
'b': [255,0,0,4],
'w': [153,0,75,5],
'v': [0,0,0,0]
}
# Temperature
# h: Hot
# w: Warm
# g: Good
# c: Cold
# f: Freezing
colors_temp = {
'xs': range(2,3),
'h': [255,0,0,5],
'w': [255,128,128,4],
'g': [255,255,255,3],
'c': [128,128,255,2],
'f': [0,0,255,1]
}
# Humidity
# v: Very humid
# h: Humid
# g: Good
# a: Arid
colors_hum = {
'xs': range(3,4),
'v': [0,0,255,5],
'h': [128,128,255,4],
'g': [255,255,255,3],
'a': [255,128,128,2]
}
colors_acc = {
'xs': range(0,1),
'0': [255,0,0,1],
'1': [255,125,0,2],
'2': [255,255,0,3],
'3': [0,227,0,4]
}