mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-22 06:04:03 -06:00
display: Support writing single character glyphs using write_glyph()
Add write_glyph() support to hd44780.py. Update uc1701.py and st7920.py to support writing single character glyphs via write_glyph(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
2a5778be3a
commit
c8d9d575a1
5 changed files with 43 additions and 7 deletions
|
@ -142,12 +142,12 @@ class PrinterLCD:
|
|||
# Heaters
|
||||
if self.extruder0 is not None:
|
||||
info = self.extruder0.get_heater().get_status(eventtime)
|
||||
self.lcd_chip.write_glyph(0, 0, 'nozzle')
|
||||
self.lcd_chip.write_glyph(0, 0, 'extruder')
|
||||
self.draw_heater(2, 0, info)
|
||||
extruder_count = 1
|
||||
if self.extruder1 is not None:
|
||||
info = self.extruder1.get_heater().get_status(eventtime)
|
||||
self.lcd_chip.write_glyph(0, 1, 'nozzle')
|
||||
self.lcd_chip.write_glyph(0, 1, 'extruder')
|
||||
self.draw_heater(2, 1, info)
|
||||
extruder_count = 2
|
||||
if self.heater_bed is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue