From 80492432210f1cf7817b7808245d196f3420021e Mon Sep 17 00:00:00 2001 From: Alex Maclean Date: Wed, 18 Aug 2021 20:01:59 +0100 Subject: atsam: Add support for SAM E70 Signed-off-by: Alex Maclean --- 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 9e1005a7..349050a9 100644 --- a/klippy/extras/temperature_mcu.py +++ b/klippy/extras/temperature_mcu.py @@ -64,6 +64,7 @@ class PrinterTemperatureMCU: cfg_funcs = [ ('rp2040', self.config_rp2040), ('sam3', self.config_sam3), ('sam4', self.config_sam4), + ('same70', self.config_same70), ('samd21', self.config_samd21), ('samd51', self.config_samd51), ('stm32f1', self.config_stm32f1), ('stm32f2', self.config_stm32f2), ('stm32f4', self.config_stm32f4), @@ -100,6 +101,9 @@ class PrinterTemperatureMCU: def config_sam4(self): self.slope = 3.3 / .004700 self.base_temperature = self.calc_base(27., 1.44 / 3.3) + def config_same70(self): + self.slope = 3.3 / .002330 + self.base_temperature = self.calc_base(25., 0.72 / 3.3) def config_samd21(self, addr=0x00806030): def get1v(val): if val & 0x80: -- cgit v1.2.3-70-g09d2