-
Notifications
You must be signed in to change notification settings - Fork 0
/
graphics.py
134 lines (122 loc) · 3.71 KB
/
graphics.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
import framebuf
wifi_connected_symbol_8x16 = bytearray([
0b11111111, 0b00000000,
0b00000000, 0b00000000,
0b01111110, 0b00000000,
0b00000000, 0b00000000,
0b00111100, 0b10100000,
0b00000000, 0b10110000,
0b00011001, 0b10100000,
0b00000000, 0b10100000,
])
wifi_connected_symbol_8x16_fb = framebuf.FrameBuffer(wifi_connected_symbol_8x16, 16, 8, framebuf.MONO_HLSB)
wifi_lost_symbol_8x16 = bytearray([
0b11111111, 0b00000000,
0b00000000, 0b00000000,
0b01111110, 0b00000000,
0b00000001, 0b00010000,
0b00111100, 0b10100000,
0b00000000, 0b01000000,
0b00011000, 0b10100000,
0b00000001, 0b00010000,
])
wifi_lost_symbol_8x16_fb = framebuf.FrameBuffer(wifi_lost_symbol_8x16, 16, 8, framebuf.MONO_HLSB)
wifi_download_symbol_8x16 = bytearray([
0b11111111, 0b00000000,
0b00000000, 0b00000000,
0b01111110, 0b00000000,
0b00000000, 0b01000000,
0b00111100, 0b01000000,
0b00000001, 0b01010000,
0b00011000, 0b11100000,
0b00000000, 0b01000000,
])
wifi_download_symbol_8x16_fb = framebuf.FrameBuffer(wifi_download_symbol_8x16, 16, 8, framebuf.MONO_HLSB)
wifi_upload_symbol_8x16 = bytearray([
0b11111111, 0b00000000,
0b00000000, 0b00000000,
0b01111110, 0b00000000,
0b00000000, 0b01000000,
0b00111100, 0b11100000,
0b00000001, 0b01010000,
0b00011000, 0b01000000,
0b00000000, 0b01000000,
])
wifi_upload_symbol_8x16_fb = framebuf.FrameBuffer(wifi_upload_symbol_8x16, 16, 8, framebuf.MONO_HLSB)
option_picker_8x8 = bytearray([
0b00011000,
0b00111100,
0b01111100,
0b11111100,
0b11111100,
0b01111100,
0b00111100,
0b00011000,
])
option_picker_8x8_fb = framebuf.FrameBuffer(option_picker_8x8, 8, 8, framebuf.MONO_HLSB)
battery_0_8x16 = bytearray([
0b00111111, 0b11111111,
0b00100000, 0b00000001,
0b00100000, 0b00000001,
0b11100000, 0b00000001,
0b11100000, 0b00000001,
0b00100000, 0b00000001,
0b00100000, 0b00000001,
0b00111111, 0b11111111,
])
battery_0_8x16_fb = framebuf.FrameBuffer(battery_0_8x16, 16, 8, framebuf.MONO_HLSB)
battery_1_8x16 = bytearray([
0b00111111, 0b11111111,
0b00100000, 0b00000001,
0b00100000, 0b00001101,
0b11100000, 0b00001101,
0b11100000, 0b00001101,
0b00100000, 0b00001101,
0b00100000, 0b00000001,
0b00111111, 0b11111111,
])
battery_1_8x16_fb = framebuf.FrameBuffer(battery_1_8x16, 16, 8, framebuf.MONO_HLSB)
battery_2_8x16 = bytearray([
0b00111111, 0b11111111,
0b00100000, 0b00000001,
0b00100000, 0b00111101,
0b11100000, 0b00111101,
0b11100000, 0b00111101,
0b00100000, 0b00111101,
0b00100000, 0b00000001,
0b00111111, 0b11111111,
])
battery_2_8x16_fb = framebuf.FrameBuffer(battery_2_8x16, 16, 8, framebuf.MONO_HLSB)
battery_3_8x16 = bytearray([
0b00111111, 0b11111111,
0b00100000, 0b00000001,
0b00100000, 0b11111101,
0b11100000, 0b11111101,
0b11100000, 0b11111101,
0b00100000, 0b11111101,
0b00100000, 0b00000001,
0b00111111, 0b11111111,
])
battery_3_8x16_fb = framebuf.FrameBuffer(battery_3_8x16, 16, 8, framebuf.MONO_HLSB)
battery_4_8x16 = bytearray([
0b00111111, 0b11111111,
0b00100000, 0b00000001,
0b00100011, 0b11111101,
0b11100011, 0b11111101,
0b11100011, 0b11111101,
0b00100011, 0b11111101,
0b00100000, 0b00000001,
0b00111111, 0b11111111,
])
battery_4_8x16_fb = framebuf.FrameBuffer(battery_4_8x16, 16, 8, framebuf.MONO_HLSB)
battery_5_8x16 = bytearray([
0b00111111, 0b11111111,
0b00100000, 0b00000001,
0b00101111, 0b11111101,
0b11101111, 0b11111101,
0b11101111, 0b11111101,
0b00101111, 0b11111101,
0b00100000, 0b00000001,
0b00111111, 0b11111111,
])
battery_5_8x16_fb = framebuf.FrameBuffer(battery_5_8x16, 16, 8, framebuf.MONO_HLSB)