From 08a5f8a5ffbc4a3aed825f8e9840702faab482d7 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 20 Feb 2018 20:50:06 -0500 Subject: display: Add initial support for LCD screens attached to an MCU Add support for displaying basic status information on ST7920 and HD44780 based LCDs that are attached directly to a micro-controller. Signed-off-by: Marcio Teixeira Signed-off-by: Kevin O'Connor --- klippy/gcode.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'klippy/gcode.py') diff --git a/klippy/gcode.py b/klippy/gcode.py index 2a23106a..82156d89 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -78,6 +78,9 @@ class GCodeParser: self.position_with_transform = transform.get_position def stats(self, eventtime): return False, "gcodein=%d" % (self.bytes_read,) + def get_status(self, eventtime): + busy = self.is_processing_data + return {'speed_factor': self.speed_factor * 60., 'busy': busy} def printer_state(self, state): if state == 'shutdown': if not self.is_printer_ready: -- cgit v1.2.3-70-g09d2