From 59fe8782415718b03eb89dd00f25ed1d6cb1ac32 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 22 Jun 2021 21:10:12 -0400 Subject: rp2040: Add initial adc support Signed-off-by: Kevin O'Connor --- klippy/extras/temperature_mcu.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'klippy/extras/temperature_mcu.py') diff --git a/klippy/extras/temperature_mcu.py b/klippy/extras/temperature_mcu.py index 4643d54e..188ad316 100644 --- a/klippy/extras/temperature_mcu.py +++ b/klippy/extras/temperature_mcu.py @@ -62,6 +62,7 @@ class PrinterTemperatureMCU: self.mcu_type = mcu.get_constants().get("MCU", "") # Run MCU specific configuration cfg_funcs = [ + ('rp2040', self.config_rp2040), ('sam3', self.config_sam3), ('sam4', self.config_sam4), ('samd21', self.config_samd21), ('samd51', self.config_samd51), ('stm32f1', self.config_stm32f1), ('stm32f2', self.config_stm32f2), @@ -89,6 +90,9 @@ class PrinterTemperatureMCU: def config_unknown(self): raise self.printer.config_error("MCU temperature not supported on %s" % (self.mcu_type,)) + def config_rp2040(self): + self.slope = 3.3 / -0.001721 + self.base_temperature = self.calc_base(27., 0.706 / 3.3) def config_sam3(self): self.slope = 3.3 / .002650 self.base_temperature = self.calc_base(27., 0.8 / 3.3) -- cgit v1.2.3-70-g09d2