Skip to content

Commit ed60105

Browse files
authored
Merge pull request #1624 from lesamouraipourpre/sharp-display
SharpDisplay: Update for CP7
2 parents 6b99c4c + 7863b7f commit ed60105

File tree

1 file changed

+4
-8
lines changed
  • CircuitPython_SharpDisplay_Displayio

1 file changed

+4
-8
lines changed

CircuitPython_SharpDisplay_Displayio/code.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ def sample(population, k):
160160
font = bitmap_font.load_font("/GothamBlack-54.bdf")
161161

162162
# Create a Group for the BLM text
163-
blm_group = displayio.Group(max_size=10)
163+
blm_group = displayio.Group()
164164
display.show(blm_group)
165165

166166
# Create a 3 line set of text for BLM
167167
blm_font = [None, None, None]
168168
for line in range(3):
169-
label = adafruit_display_text.label.Label(font, color=0xFFFFFF, max_glyphs=16)
169+
label = adafruit_display_text.label.Label(font, color=0xFFFFFF)
170170
label.anchor_point = (0, 0)
171171
label.anchored_position = (8, line*84+8)
172172
blm_font[line] = label
@@ -186,18 +186,14 @@ def sample(population, k):
186186
# Create a 2 line set of font text for names
187187
names_font = [None, None]
188188
for line in range(2):
189-
label = adafruit_display_text.label.Label(
190-
font,
191-
color=0xFFFFFF,
192-
max_glyphs=16,
193-
)
189+
label = adafruit_display_text.label.Label(font, color=0xFFFFFF)
194190
# Center each line horizontally, position vertically
195191
label.anchor_point = (0.5, 0)
196192
label.anchored_position = (200, line*84+42)
197193
names_font[line] = label
198194

199195
# Create a Group for the name text
200-
name_group = displayio.Group(max_size=10)
196+
name_group = displayio.Group()
201197
for line in names_font:
202198
name_group.append(line)
203199

0 commit comments

Comments
 (0)