diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-09-20 11:10:51 -0400 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2018-09-21 16:39:38 -0400 |
commit | 2857255ef18fc12a4e04a2850556d7300f8e36f2 (patch) | |
tree | 69bec5fa4636a50978ad491fd3d14a0f5f88aa84 /klippy/extras/display/display.py | |
parent | 3d4ee9e9622d9baab28d6ad23fac10fccf191e2a (diff) | |
download | kutter-2857255ef18fc12a4e04a2850556d7300f8e36f2.tar.gz kutter-2857255ef18fc12a4e04a2850556d7300f8e36f2.tar.xz kutter-2857255ef18fc12a4e04a2850556d7300f8e36f2.zip |
icons: Add the bed to the bed heating animations
It isn't necessary to use the st7920's xor capabilities when drawing
the bed heating animations. This makes it easier to use the icons for
other displays.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/display/display.py')
-rw-r--r-- | klippy/extras/display/display.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/klippy/extras/display/display.py b/klippy/extras/display/display.py index 607f23e5..99d4d197 100644 --- a/klippy/extras/display/display.py +++ b/klippy/extras/display/display.py @@ -9,7 +9,10 @@ import logging import hd44780, st7920, uc1701, icons import menu -LCD_chips = { 'st7920': st7920.ST7920, 'hd44780': hd44780.HD44780, 'uc1701' : uc1701.UC1701 } +LCD_chips = { + 'st7920': st7920.ST7920, 'hd44780': hd44780.HD44780, + 'uc1701' : uc1701.UC1701 +} M73_TIMEOUT = 5. class PrinterLCD: @@ -46,8 +49,8 @@ class PrinterLCD: self.gcode.register_command('M73', self.cmd_M73) self.gcode.register_command('M117', self.cmd_M117) # Load glyphs - self.load_glyph(self.BED1_GLYPH, icons.heat1_icon) - self.load_glyph(self.BED2_GLYPH, icons.heat2_icon) + self.load_glyph(self.BED1_GLYPH, icons.bed_heat1_icon) + self.load_glyph(self.BED2_GLYPH, icons.bed_heat2_icon) self.load_glyph(self.FAN1_GLYPH, icons.fan1_icon) self.load_glyph(self.FAN2_GLYPH, icons.fan2_icon) # Start screen update timer @@ -172,10 +175,11 @@ class PrinterLCD: extruder_count = 2 if self.heater_bed is not None: info = self.heater_bed.get_status(eventtime) - self.draw_icon(0, extruder_count, icons.bed_icon) if info['target']: self.animate_glyphs(eventtime, 0, extruder_count, self.BED1_GLYPH, True) + else: + self.draw_icon(0, extruder_count, icons.bed_icon) self.draw_heater(2, extruder_count, info) # Fan speed if self.fan is not None: |