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: diff --git a/klippy/extras/display/icons.py b/klippy/extras/display/icons.py index 6ad89397..94701176 100644 --- a/klippy/extras/display/icons.py +++ b/klippy/extras/display/icons.py @@ -42,7 +42,7 @@ bed_icon = [ 0b0000000000000000 ] -heat1_icon = [ +bed_heat1_icon = [ 0b0000000000000000, 0b0000000000000000, 0b0010001000100000, @@ -55,13 +55,13 @@ heat1_icon = [ 0b0001000100010000, 0b0000100010001000, 0b0000000000000000, - 0b0000000000000000, - 0b0000000000000000, + 0b0111111111111110, + 0b0111111111111110, 0b0000000000000000, 0b0000000000000000 ] -heat2_icon = [ +bed_heat2_icon = [ 0b0000000000000000, 0b0000000000000000, 0b0000100010001000, @@ -74,8 +74,8 @@ heat2_icon = [ 0b0000100010001000, 0b0001000100010000, 0b0000000000000000, - 0b0000000000000000, - 0b0000000000000000, + 0b0111111111111110, + 0b0111111111111110, 0b0000000000000000, 0b0000000000000000 ]