aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/display/uc1701.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-02-27 13:24:50 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-02-27 13:26:59 -0500
commite5041472854c646323f02bce4c57dc86d23815fa (patch)
treed5f8ee85540d8821dc831ed3afc6fab8acbf0a17 /klippy/extras/display/uc1701.py
parentaf882ee0fe0510cba5108912ecfbc204e43d03d4 (diff)
downloadkutter-e5041472854c646323f02bce4c57dc86d23815fa.tar.gz
kutter-e5041472854c646323f02bce4c57dc86d23815fa.tar.xz
kutter-e5041472854c646323f02bce4c57dc86d23815fa.zip
font8x14: Store font as strings instead of as bytearray
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/display/uc1701.py')
-rw-r--r--klippy/extras/display/uc1701.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extras/display/uc1701.py b/klippy/extras/display/uc1701.py
index 4f98896b..5c1a39a3 100644
--- a/klippy/extras/display/uc1701.py
+++ b/klippy/extras/display/uc1701.py
@@ -19,7 +19,8 @@ class DisplayBase:
self.all_framebuffers = [(self.vram[i], bytearray('~'*128), i)
for i in range(8)]
# Cache fonts and icons in display byte order
- self.font = [self._swizzle_bits(c) for c in font8x14.VGA_FONT]
+ self.font = [self._swizzle_bits(bytearray(c))
+ for c in font8x14.VGA_FONT]
self.icons = {}
for name, icon in icons.Icons16x16.items():
top1, bot1 = self._swizzle_bits([d >> 8 for d in icon])