aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-01-21 20:14:49 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-01-21 21:28:25 -0500
commit7327394c50cc52ba2363959b0647370860f18d9f (patch)
tree1615cc50ba2f25ba6ac11cdb5587ce48596f76df /test
parentfc946c796c72c83a5c9c753a3ca69fce3b8a88da (diff)
downloadkutter-7327394c50cc52ba2363959b0647370860f18d9f.tar.gz
kutter-7327394c50cc52ba2363959b0647370860f18d9f.tar.xz
kutter-7327394c50cc52ba2363959b0647370860f18d9f.zip
adc_temperature: Add support for linear interpolation of resistances
Add support for performing linear interpolation between a set of measured temperature/resistance pairs. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'test')
-rw-r--r--test/klippy/temperature.cfg16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/klippy/temperature.cfg b/test/klippy/temperature.cfg
index fef12161..b4a75e3c 100644
--- a/test/klippy/temperature.cfg
+++ b/test/klippy/temperature.cfg
@@ -117,6 +117,22 @@ control: watermark
sensor_type: my_custom_adc
sensor_pin: analog4
+[adc_temperature my_custom_resistance_adc]
+temperature1: 25
+resistance1: 1000
+temperature2: 100
+resistance2: 2000
+temperature3: 250
+resistance3: 3000
+
+[temperature_fan test_custom_resistance_adc]
+pin: ar17
+min_temp: 0
+max_temp: 100
+control: watermark
+sensor_type: my_custom_resistance_adc
+sensor_pin: analog5
+
[mcu]
serial: /dev/ttyACM0
pin_map: arduino