display: Convert to Python3 string encoding

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-10-01 19:08:37 -04:00
parent cc2a313c10
commit 68b939c756
6 changed files with 279 additions and 279 deletions

View file

@ -223,7 +223,7 @@ class PrinterLCD:
for i, text in enumerate(mixed_text.split('~')):
if i & 1 == 0:
# write text
self.lcd_chip.write_text(pos, row, text)
self.lcd_chip.write_text(pos, row, text.encode())
pos += len(text)
else:
# write glyph