temperature_mcu: Add enhanced support for monitoring mcu temperature

Add a "temperature_mcu" tool that can monitor builtin micro-controller
temperature sensors.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-12-10 00:15:19 -05:00
parent 39a04eac5f
commit a1baefc2c2
3 changed files with 172 additions and 1 deletions

View file

@ -265,7 +265,8 @@ class PrinterHeaters:
return self.heaters[heater_name]
def setup_sensor(self, config):
modules = ["thermistor", "adc_temperature", "spi_temperature",
"bme280", "htu21d", "lm75", "rpi_temperature"]
"bme280", "htu21d", "lm75", "rpi_temperature",
"temperature_mcu"]
for module_name in modules:
self.printer.load_object(config, module_name)
sensor_type = config.get('sensor_type')