From f42ce3e2fd6de3129e196507b7c862cb511f62de Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 8 Jun 2022 18:06:12 -0400 Subject: [PATCH] linuxtest: Add a test case for the ds18b20 sensor Signed-off-by: Kevin O'Connor --- test/klippy/linuxtest.cfg | 15 +++++++++++++++ test/klippy/linuxtest.test | 5 +++++ 2 files changed, 20 insertions(+) create mode 100644 test/klippy/linuxtest.cfg create mode 100644 test/klippy/linuxtest.test diff --git a/test/klippy/linuxtest.cfg b/test/klippy/linuxtest.cfg new file mode 100644 index 00000000..67737239 --- /dev/null +++ b/test/klippy/linuxtest.cfg @@ -0,0 +1,15 @@ +# Test config for linux process specific hardware +[mcu] +serial: /tmp/klipper_host_mcu + +[printer] +kinematics: none +max_velocity: 300 +max_accel: 3000 + +[temperature_sensor my_ds18b20] +min_temp: 0 +max_temp: 100 +serial_no: 12345678 +sensor_mcu: mcu +sensor_type: DS18B20 diff --git a/test/klippy/linuxtest.test b/test/klippy/linuxtest.test new file mode 100644 index 00000000..913ea61f --- /dev/null +++ b/test/klippy/linuxtest.test @@ -0,0 +1,5 @@ +# Tests for various temperature sensors +DICTIONARY linuxprocess.dict +CONFIG linuxtest.cfg + +G4 P1000