diff options
author | Florian Heilmann <Florian.Heilmann@gmx.net> | 2020-06-09 14:20:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 08:20:48 -0400 |
commit | f28c3319ed183b0ec819be6a7b1359a3ff429cb0 (patch) | |
tree | a33f28f1ce991b06aa9197b48e30b0d547e91ed3 /klippy/extras/display | |
parent | cf9627cc0509a0ba9f4147c67602e018b28f5a4a (diff) | |
download | kutter-f28c3319ed183b0ec819be6a7b1359a3ff429cb0.tar.gz kutter-f28c3319ed183b0ec819be6a7b1359a3ff429cb0.tar.xz kutter-f28c3319ed183b0ec819be6a7b1359a3ff429cb0.zip |
uc1701: Fix for glyph rendering on uc1701 display (#2966)
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
Diffstat (limited to 'klippy/extras/display')
-rw-r--r-- | klippy/extras/display/uc1701.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/display/uc1701.py b/klippy/extras/display/uc1701.py index 8f301df2..8f9d1d53 100644 --- a/klippy/extras/display/uc1701.py +++ b/klippy/extras/display/uc1701.py @@ -54,8 +54,8 @@ class DisplayBase: bits_bot = [0] * 8 for row in range(8): for col in range(8): - bits_top[col] |= ((data[row] >> (8 - col)) & 1) << row - bits_bot[col] |= ((data[row + 8] >> (8 - col)) & 1) << row + bits_top[col] |= ((data[row] >> (7 - col)) & 1) << row + bits_bot[col] |= ((data[row + 8] >> (7 - col)) & 1) << row return (bits_top, bits_bot) def write_text(self, x, y, data): if x + len(data) > 16: |