aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-06-22 21:10:12 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-07-04 10:11:02 -0400
commit59fe8782415718b03eb89dd00f25ed1d6cb1ac32 (patch)
treed324ef31d976634fb2fc3e27c8f10434b79a42f5 /klippy
parent045bfa4e8d177ca934815dd16fa8700543578328 (diff)
downloadkutter-59fe8782415718b03eb89dd00f25ed1d6cb1ac32.tar.gz
kutter-59fe8782415718b03eb89dd00f25ed1d6cb1ac32.tar.xz
kutter-59fe8782415718b03eb89dd00f25ed1d6cb1ac32.zip
rp2040: Add initial adc support
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/extras/temperature_mcu.py4
1 files changed, 4 insertions, 0 deletions
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)