Skip to content

Commit 1fb056e

Browse files
committed
Loading glyphs in more logical location
1 parent a586287 commit 1fb056e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

CircuitPython_Pyloton/pyloton.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,6 @@ def show_splash(self):
162162
"""
163163
if self.debug:
164164
return
165-
glyphs = b'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-!,. "\'?!'
166-
self.arial16.load_glyphs(glyphs)
167-
self.arial12.load_glyphs(glyphs)
168165
with open('blinka-pyloton.bmp', 'rb') as bitmap_file:
169166
bitmap1 = displayio.OnDiskBitmap(bitmap_file)
170167

@@ -194,6 +191,10 @@ def _load_fonts(self):
194191
self.arial12 = bitmap_font.load_font("/fonts/Arial-12.bdf")
195192
self.arial16 = bitmap_font.load_font("/fonts/Arial-16.bdf")
196193
self.arial24 = bitmap_font.load_font("/fonts/Arial-Bold-24.bdf")
194+
glyphs = b'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-!,. "\'?!'
195+
self.arial12.load_glyphs(glyphs)
196+
self.arial16.load_glyphs(glyphs)
197+
self.arial24.load_glyphs(glyphs)
197198

198199

199200
def _status_update(self, message):

0 commit comments

Comments
 (0)