|
62 | 62 |
|
63 | 63 | clue.display.brightness = 1.0 |
64 | 64 | clue.pixel.brightness = 0.2 |
65 | | -screen = displayio.Group(max_size=17) |
| 65 | +screen = displayio.Group() |
66 | 66 |
|
67 | 67 | ORANGE = 0xCE6136 |
68 | 68 | GRAY = 0x080808 |
|
95 | 95 | screen.append(bottom_trim_box) |
96 | 96 |
|
97 | 97 | # title text |
98 | | -title_label = label.Label( |
99 | | - terminalio.FONT, text="MIDI CLUE", scale=4, color=SILVER, max_glyphs=14 |
100 | | -) |
| 98 | +title_label = label.Label(terminalio.FONT, text="MIDI CLUE", scale=4, color=SILVER) |
101 | 99 | title_label.x = 14 |
102 | 100 | title_label.y = 27 |
103 | 101 | screen.append(title_label) |
|
112 | 110 | text=("CC {}".format(cc_x_num)), |
113 | 111 | scale=3, |
114 | 112 | color=ORANGE, |
115 | | - max_glyphs=6, |
116 | 113 | ) |
117 | 114 | cc_x_num_label.x = column_a |
118 | 115 | cc_x_num_label.y = row_a |
119 | 116 | screen.append(cc_x_num_label) |
120 | 117 |
|
121 | 118 | # cc x value |
122 | | -cc_x_label = label.Label( |
123 | | - terminalio.FONT, text=str(cc_x), scale=3, color=ORANGE, max_glyphs=3 |
124 | | -) |
| 119 | +cc_x_label = label.Label(terminalio.FONT, text=str(cc_x), scale=3, color=ORANGE) |
125 | 120 | cc_x_label.x = column_b |
126 | 121 | cc_x_label.y = row_a |
127 | 122 | screen.append(cc_x_label) |
|
136 | 131 |
|
137 | 132 | # cc y num |
138 | 133 | cc_y_num_label = label.Label( |
139 | | - terminalio.FONT, text=("CC {}".format(cc_y_num)), scale=3, color=BLUE, max_glyphs=6 |
| 134 | + terminalio.FONT, text=("CC {}".format(cc_y_num)), scale=3, color=BLUE |
140 | 135 | ) |
141 | 136 | cc_y_num_label.x = column_a |
142 | 137 | cc_y_num_label.y = row_b |
143 | 138 | screen.append(cc_y_num_label) |
144 | 139 |
|
145 | 140 | # cc y value text |
146 | | -cc_y_label = label.Label(terminalio.FONT, text=str(cc_y), scale=3, color=BLUE, max_glyphs=3,) |
| 141 | +cc_y_label = label.Label(terminalio.FONT, text=str(cc_y), scale=3, color=BLUE) |
147 | 142 | cc_y_label.x = column_b |
148 | 143 | cc_y_label.y = row_b |
149 | 144 | screen.append(cc_y_label) |
|
158 | 153 | text=("CC {}".format(cc_prox_num)), |
159 | 154 | scale=3, |
160 | 155 | color=SILVER, |
161 | | - max_glyphs=6, |
162 | 156 | ) |
163 | 157 | cc_prox_num_label.x = column_a |
164 | 158 | cc_prox_num_label.y = row_c |
165 | 159 | screen.append(cc_prox_num_label) |
166 | 160 |
|
167 | 161 | # cc prox value text |
168 | | -cc_prox_label = label.Label( |
169 | | - terminalio.FONT, text=str(cc_prox), scale=3, color=SILVER, max_glyphs=3, |
170 | | -) |
| 162 | +cc_prox_label = label.Label(terminalio.FONT, text=str(cc_prox), scale=3, color=SILVER) |
171 | 163 | cc_prox_label.x = column_b |
172 | 164 | cc_prox_label.y = row_c |
173 | 165 | screen.append(cc_prox_label) |
|
178 | 170 |
|
179 | 171 |
|
180 | 172 | # patch label |
181 | | -patch_label = label.Label( |
182 | | - terminalio.FONT, text=("Patch _"), scale=2, color=BLUE, max_glyphs=12, |
183 | | -) |
| 173 | +patch_label = label.Label(terminalio.FONT, text="Patch _", scale=2, color=BLUE) |
184 | 174 | patch_label.x = 4 |
185 | 175 | patch_label.y = 216 |
186 | 176 | screen.append(patch_label) |
187 | 177 |
|
188 | 178 | # footer label |
189 | | -footer_label = label.Label( |
190 | | - terminalio.FONT, text=("connect BLE"), scale=2, color=ORANGE, max_glyphs=14 |
191 | | -) |
| 179 | +footer_label = label.Label(terminalio.FONT, text="connect BLE", scale=2, color=ORANGE) |
192 | 180 | footer_label.x = 102 |
193 | 181 | footer_label.y = 216 |
194 | 182 | screen.append(footer_label) |
|
0 commit comments