diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-02-20 20:50:06 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-03-06 11:30:46 -0500 |
commit | 08a5f8a5ffbc4a3aed825f8e9840702faab482d7 (patch) | |
tree | 97b469d56bfb04577187df0398f460f7165e3bbb /klippy/heater.py | |
parent | 43ac56766e39d9a85372cdf7c1926ffa049f9342 (diff) | |
download | kutter-08a5f8a5ffbc4a3aed825f8e9840702faab482d7.tar.gz kutter-08a5f8a5ffbc4a3aed825f8e9840702faab482d7.tar.xz kutter-08a5f8a5ffbc4a3aed825f8e9840702faab482d7.zip |
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 <marcio@alephobjects.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/heater.py')
-rw-r--r-- | klippy/heater.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/klippy/heater.py b/klippy/heater.py index 23ed42cb..d3315a52 100644 --- a/klippy/heater.py +++ b/klippy/heater.py @@ -197,6 +197,11 @@ class PrinterHeater: is_active = target_temp or last_temp > 50. return is_active, '%s: target=%.0f temp=%.1f pwm=%.3f' % ( self.name, target_temp, last_temp, last_pwm_value) + def get_status(self, eventtime): + with self.lock: + target_temp = self.target_temp + last_temp = self.last_temp + return {'temperature': last_temp, 'target': target_temp} ###################################################################### |