mirror of https://github.com/Desuuuu/klipper.git
uc1701: Fix for glyph rendering on uc1701 display (#2966)
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
This commit is contained in:
parent
cf9627cc05
commit
f28c3319ed
|
@ -54,8 +54,8 @@ class DisplayBase:
|
||||||
bits_bot = [0] * 8
|
bits_bot = [0] * 8
|
||||||
for row in range(8):
|
for row in range(8):
|
||||||
for col in range(8):
|
for col in range(8):
|
||||||
bits_top[col] |= ((data[row] >> (8 - col)) & 1) << row
|
bits_top[col] |= ((data[row] >> (7 - col)) & 1) << row
|
||||||
bits_bot[col] |= ((data[row + 8] >> (8 - col)) & 1) << row
|
bits_bot[col] |= ((data[row + 8] >> (7 - col)) & 1) << row
|
||||||
return (bits_top, bits_bot)
|
return (bits_top, bits_bot)
|
||||||
def write_text(self, x, y, data):
|
def write_text(self, x, y, data):
|
||||||
if x + len(data) > 16:
|
if x + len(data) > 16:
|
||||||
|
|
Loading…
Reference in New Issue