hd44780: Improve Python3 compatibility
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
c3e9999e0c
commit
d69a496b83
|
@ -103,7 +103,7 @@ class HD44780:
|
||||||
data = self.icons.get(glyph_name)
|
data = self.icons.get(glyph_name)
|
||||||
if data is not None:
|
if data is not None:
|
||||||
slot, bits = data
|
slot, bits = data
|
||||||
self.write_text(x, y, chr(slot))
|
self.write_text(x, y, [slot])
|
||||||
self.glyph_framebuffer[slot * 8:(slot + 1) * 8] = bits
|
self.glyph_framebuffer[slot * 8:(slot + 1) * 8] = bits
|
||||||
return 1
|
return 1
|
||||||
char = TextGlyphs.get(glyph_name)
|
char = TextGlyphs.get(glyph_name)
|
||||||
|
|
Loading…
Reference in New Issue