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:
committed by
KevinOConnor
parent
2a5778be3a
commit
c8d9d575a1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user