diff options
author | Florian Heilmann <Florian.Heilmann@gmx.net> | 2020-06-07 16:25:19 +0000 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2020-06-08 16:40:45 -0400 |
commit | 3dcac1308e6fe132487c45824d142609f2571df6 (patch) | |
tree | 29a45f14e29ce3361830853a7808125a05e18d72 /klippy/extras/display/hd44780.py | |
parent | 722770f62ff493b5ecef553bf36be84de3c23907 (diff) | |
download | kutter-3dcac1308e6fe132487c45824d142609f2571df6.tar.gz kutter-3dcac1308e6fe132487c45824d142609f2571df6.tar.xz kutter-3dcac1308e6fe132487c45824d142609f2571df6.zip |
display: Move glyph definition to printer config
This commit allows to modify the icons (or glyphs) in the displays that
support it. Existing icons can be modified and new icons can be added via
a [display_glyph] section in the config.
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
Diffstat (limited to 'klippy/extras/display/hd44780.py')
-rw-r--r-- | klippy/extras/display/hd44780.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/extras/display/hd44780.py b/klippy/extras/display/hd44780.py index 49cf0572..b1faef45 100644 --- a/klippy/extras/display/hd44780.py +++ b/klippy/extras/display/hd44780.py @@ -95,6 +95,8 @@ class HD44780: data = data[:20 - min(x, 20)] pos = x + ((y & 0x02) >> 1) * 20 self.text_framebuffers[y & 1][pos:pos+len(data)] = data + def set_glyphs(self, glyphs): + pass def write_glyph(self, x, y, glyph_name): char = TextGlyphs.get(glyph_name) if char is not None: |