Skip to content

Commit ec69daf

Browse files
Remove max_size usage with displayio.Group
Remove max_glyphs usage with Display_Text Label
1 parent a68a5c2 commit ec69daf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CircuitPython_Pyloton/pyloton.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def __init__(self, ble, display, circ, heart=True, speed=True, cad=True, ams=Tru
129129

130130
self.start = time.time()
131131

132-
self.splash = displayio.Group(max_size=25)
132+
self.splash = displayio.Group()
133133
self.loading_group = displayio.Group()
134134

135135
self._load_fonts()
@@ -140,9 +140,9 @@ def __init__(self, ble, display, circ, heart=True, speed=True, cad=True, ams=Tru
140140

141141
self.text_group = displayio.Group()
142142
self.status = label.Label(font=self.arial12, x=10, y=200,
143-
text='', color=self.YELLOW, max_glyphs=30)
143+
text='', color=self.YELLOW)
144144
self.status1 = label.Label(font=self.arial12, x=10, y=220,
145-
text='', color=self.YELLOW, max_glyphs=30)
145+
text='', color=self.YELLOW)
146146

147147
self.text_group.append(self.status)
148148
self.text_group.append(self.status1)
@@ -413,7 +413,7 @@ def _label_maker(self, text, x, y, font=None):
413413
"""
414414
if not font:
415415
font = self.arial24
416-
return label.Label(font=font, x=x, y=y, text=text, color=self.WHITE, max_glyphs=30)
416+
return label.Label(font=font, x=x, y=y, text=text, color=self.WHITE)
417417

418418

419419
def _get_y(self):

0 commit comments

Comments
 (0)