mirror of https://github.com/Desuuuu/klipper.git
display: fix for 128 x 64 pixel displays
Right justify fan speed and feed rate, keep progress centered. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
154397b92c
commit
640169310f
|
@ -174,8 +174,7 @@ class PrinterLCD:
|
|||
info = self.fan.get_status(eventtime)
|
||||
self.animate_glyphs(eventtime, 10, 0, self.FAN1_GLYPH,
|
||||
info['speed'] != 0.)
|
||||
align = '>'if self.lcd_type == 'uc1701' else '^'
|
||||
self.draw_percent(12, 0, 4, info['speed'], align)
|
||||
self.draw_percent(12, 0, 4, info['speed'], '>')
|
||||
# SD card print progress
|
||||
progress = None
|
||||
toolhead_info = self.toolhead.get_status(eventtime)
|
||||
|
@ -194,14 +193,13 @@ class PrinterLCD:
|
|||
x, y, width = 0, 2, 10
|
||||
else:
|
||||
x, y, width = 10, 1, 6
|
||||
self.draw_percent(x, y, width, progress)
|
||||
self.draw_percent(x, y, width, progress, '^')
|
||||
self.draw_progress_bar(x, y, width, progress)
|
||||
# G-Code speed factor
|
||||
gcode_info = self.gcode.get_status(eventtime)
|
||||
if extruder_count == 1:
|
||||
self.draw_icon(10, 1, icons.feedrate_icon)
|
||||
align = '>'if self.lcd_type == 'uc1701' else '^'
|
||||
self.draw_percent(12, 1, 4, gcode_info['speed_factor'], align)
|
||||
self.draw_percent(12, 1, 4, gcode_info['speed_factor'], '>')
|
||||
# Printing time and status
|
||||
printing_time = toolhead_info['printing_time']
|
||||
remaining_time = None
|
||||
|
|
Loading…
Reference in New Issue