uc1701: Improve Python3 compatibility
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
d69a496b83
commit
2b2b610cff
|
@ -73,8 +73,8 @@ class DisplayBase:
|
||||||
pix_x = x * 8
|
pix_x = x * 8
|
||||||
page_top = self.vram[y * 2]
|
page_top = self.vram[y * 2]
|
||||||
page_bot = self.vram[y * 2 + 1]
|
page_bot = self.vram[y * 2 + 1]
|
||||||
for c in data:
|
for c in bytearray(data):
|
||||||
bits_top, bits_bot = self.font[ord(c)]
|
bits_top, bits_bot = self.font[c]
|
||||||
page_top[pix_x:pix_x+8] = bits_top
|
page_top[pix_x:pix_x+8] = bits_top
|
||||||
page_bot[pix_x:pix_x+8] = bits_bot
|
page_bot[pix_x:pix_x+8] = bits_bot
|
||||||
pix_x += 8
|
pix_x += 8
|
||||||
|
|
Loading…
Reference in New Issue