aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/heaters.py
diff options
context:
space:
mode:
authorAlan Lord <alanslists@gmail.com>2021-02-02 19:34:56 +0000
committerGitHub <noreply@github.com>2021-02-02 14:34:56 -0500
commit7d4df659203269452c722c6e029fbc71e2488db7 (patch)
treed302a7cb6aeea9b799c978d8916e283dbfc7ab40 /klippy/extras/heaters.py
parent19397a0a2b5997d74b8aada1596310a3f383c626 (diff)
downloadkutter-7d4df659203269452c722c6e029fbc71e2488db7.tar.gz
kutter-7d4df659203269452c722c6e029fbc71e2488db7.tar.xz
kutter-7d4df659203269452c722c6e029fbc71e2488db7.zip
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>
Diffstat (limited to 'klippy/extras/heaters.py')
-rw-r--r--klippy/extras/heaters.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extras/heaters.py b/klippy/extras/heaters.py
index 92d56db9..a7aec4fa 100644
--- a/klippy/extras/heaters.py
+++ b/klippy/extras/heaters.py
@@ -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')