ds18b20: new module for 1-wire temperature sensor (#3462)

Initial commit of code to support 1-wire (Dallas) sensors such
as the DS18B20. Requires Linux kernel drivers to create a file
in /sysfs which is read by this module, and temperature
typically returned to a temperature_fan.

Signed-off-by: Alan Lord <alanslists@gmail.com>
Signed-off-by: Josh Headapohl <joshhead@gmail.com>
This commit is contained in:
Alan Lord
2021-02-02 19:34:56 +00:00
committed by GitHub
parent 19397a0a2b
commit 7d4df65920
5 changed files with 372 additions and 2 deletions

View File

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