From 7327394c50cc52ba2363959b0647370860f18d9f Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 21 Jan 2019 20:14:49 -0500 Subject: 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 --- test/klippy/temperature.cfg | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'test') 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 -- cgit v1.2.3-70-g09d2