Skip to content

Commit cb5e88f

Browse files
committed
cp7 updates and text position
1 parent bd7536a commit cb5e88f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Say_Their_Names_LEDMatrix/code.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
blm_font = [None, None, None]
138138
for line in range(3):
139139
label = adafruit_display_text.label.Label(
140-
terminalio.FONT, color=0xFFFFFF, x=2, y=line * 10 - 2, max_glyphs=16
140+
terminalio.FONT, color=0xFFFFFF, x=2, y=line * 10 + 5
141141
)
142142
blm_font[line] = label
143143

@@ -147,14 +147,12 @@
147147
label = adafruit_display_text.label.Label(
148148
terminalio.FONT,
149149
color=0xFFFFFF,
150-
x=36,
151-
y=line * 14, # these will center text when anchor is top-middle
152-
max_glyphs=16,
150+
anchored_position=(32, line * 14) # these will center text when anchor is top-middle
153151
)
154152
label.anchor_point = (0.5, 0)
155153
names_font[line] = label
156154

157-
g = displayio.Group(max_size=10)
155+
g = displayio.Group()
158156
for line in blm_font:
159157
g.append(line)
160158
for line in names_font:

0 commit comments

Comments
 (0)