diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-06-08 22:04:24 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-06-09 08:09:59 -0400 |
commit | 7713986ae1a349b7270d50191f47a7ffae94ac1b (patch) | |
tree | 275168244b5d536881b7a75038eb53aa0fe6f2f3 /klippy/extras/display/st7920.py | |
parent | 1a7e4e51b32bb4eead6eab111293ced012871414 (diff) | |
download | kutter-7713986ae1a349b7270d50191f47a7ffae94ac1b.tar.gz kutter-7713986ae1a349b7270d50191f47a7ffae94ac1b.tar.xz kutter-7713986ae1a349b7270d50191f47a7ffae94ac1b.zip |
display: Make hd44780 glyphs configurable
Allow the 20x4 hd44780 screen glyphs to be customizable from the
config file.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/display/st7920.py')
-rw-r--r-- | klippy/extras/display/st7920.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/klippy/extras/display/st7920.py b/klippy/extras/display/st7920.py index 30c3dfb1..e368d869 100644 --- a/klippy/extras/display/st7920.py +++ b/klippy/extras/display/st7920.py @@ -137,7 +137,9 @@ class ST7920: self.graphics_framebuffers[gfx_fb][x:x+len(data)] = data def set_glyphs(self, glyphs): for glyph_name, glyph_data in glyphs.items(): - self.icons[glyph_name] = glyph_data + data = glyph_data.get('icon16x16') + if data is not None: + self.icons[glyph_name] = data # Setup animated glyphs self.cache_glyph('fan2', 'fan1', 0) self.cache_glyph('bed_heat2', 'bed_heat1', 1) |