aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/display/hd44780.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-02-16 15:22:16 -0500
committerKevin O'Connor <kevin@koconnor.net>2020-03-08 17:38:21 -0400
commit2cf03ffa2337f4fea93e9b2dbb0b78d62e887625 (patch)
tree42a98c5aa48464a514d512366717da202e270878 /klippy/extras/display/hd44780.py
parent5acc1816242510ddfdde7eeb972a5ba70ce8a26e (diff)
downloadkutter-2cf03ffa2337f4fea93e9b2dbb0b78d62e887625.tar.gz
kutter-2cf03ffa2337f4fea93e9b2dbb0b78d62e887625.tar.xz
kutter-2cf03ffa2337f4fea93e9b2dbb0b78d62e887625.zip
display: Replace hard-coded display with new config based display
Introduce a new config based system for specifying the on-screen contents of an lcd screen. The default screen configuration (found in klippy/extras/display/display.cfg) is the same as the previous hard-coded display, so this should not change behavior for existing users. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/display/hd44780.py')
-rw-r--r--klippy/extras/display/hd44780.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/klippy/extras/display/hd44780.py b/klippy/extras/display/hd44780.py
index 1a766654..49cf0572 100644
--- a/klippy/extras/display/hd44780.py
+++ b/klippy/extras/display/hd44780.py
@@ -102,6 +102,8 @@ class HD44780:
self.write_text(x, y, char)
return 1
return 0
+ def write_graphics(self, x, y, pixel_row, pixel_col):
+ pass
def clear(self):
spaces = ' ' * 40
self.text_framebuffers[0][:] = spaces
@@ -187,11 +189,11 @@ HD44780_chars = [
TextGlyphs = {
'right_arrow': '\x7e',
'extruder': '\x00',
- 'bed': '\x01',
+ 'bed': '\x01', 'bed_heat1': '\x01', 'bed_heat2': '\x01',
'feedrate': '\x02',
'clock': '\x03',
'degrees': '\x04',
'usb': '\x05',
'sd': '\x06',
- 'fan': '\x07',
+ 'fan': '\x07', 'fan1': '\x07', 'fan2': '\x07',
}