Skip to content

Commit de8ce66

Browse files
Remove max_size usage with displayio.Group
Remove max_glyphs usage with Display_Text Label
1 parent bd7536a commit de8ce66

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

MIDI_CLUE_BLE_Glove/midi_clue_ble_glove.py

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
clue.display.brightness = 1.0
6464
clue.pixel.brightness = 0.2
65-
screen = displayio.Group(max_size=17)
65+
screen = displayio.Group()
6666

6767
ORANGE = 0xCE6136
6868
GRAY = 0x080808
@@ -95,9 +95,7 @@
9595
screen.append(bottom_trim_box)
9696

9797
# 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)
10199
title_label.x = 14
102100
title_label.y = 27
103101
screen.append(title_label)
@@ -112,16 +110,13 @@
112110
text=("CC {}".format(cc_x_num)),
113111
scale=3,
114112
color=ORANGE,
115-
max_glyphs=6,
116113
)
117114
cc_x_num_label.x = column_a
118115
cc_x_num_label.y = row_a
119116
screen.append(cc_x_num_label)
120117

121118
# 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)
125120
cc_x_label.x = column_b
126121
cc_x_label.y = row_a
127122
screen.append(cc_x_label)
@@ -136,14 +131,14 @@
136131

137132
# cc y num
138133
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
140135
)
141136
cc_y_num_label.x = column_a
142137
cc_y_num_label.y = row_b
143138
screen.append(cc_y_num_label)
144139

145140
# 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)
147142
cc_y_label.x = column_b
148143
cc_y_label.y = row_b
149144
screen.append(cc_y_label)
@@ -158,16 +153,13 @@
158153
text=("CC {}".format(cc_prox_num)),
159154
scale=3,
160155
color=SILVER,
161-
max_glyphs=6,
162156
)
163157
cc_prox_num_label.x = column_a
164158
cc_prox_num_label.y = row_c
165159
screen.append(cc_prox_num_label)
166160

167161
# 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)
171163
cc_prox_label.x = column_b
172164
cc_prox_label.y = row_c
173165
screen.append(cc_prox_label)
@@ -178,17 +170,13 @@
178170

179171

180172
# 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)
184174
patch_label.x = 4
185175
patch_label.y = 216
186176
screen.append(patch_label)
187177

188178
# 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)
192180
footer_label.x = 102
193181
footer_label.y = 216
194182
screen.append(footer_label)

0 commit comments

Comments
 (0)