From 0ebcfb7c946cf072a641730ab0882ba19d9cc2b8 Mon Sep 17 00:00:00 2001 From: Bea Nance Date: Wed, 18 Sep 2024 14:30:37 -0400 Subject: [PATCH] add loadcell test --- test/klippy/load_cell.cfg | 19 +++++++++++++++++++ test/klippy/load_cell.test | 4 ++++ 2 files changed, 23 insertions(+) create mode 100644 test/klippy/load_cell.cfg create mode 100644 test/klippy/load_cell.test diff --git a/test/klippy/load_cell.cfg b/test/klippy/load_cell.cfg new file mode 100644 index 000000000..03a3f1b85 --- /dev/null +++ b/test/klippy/load_cell.cfg @@ -0,0 +1,19 @@ +# Test config for load_cell +[mcu] +serial: /dev/ttyACM0 +[printer] +kinematics: none +max_velocity: 300 +max_accel: 3000 +[load_cell my_ads1220] +sensor_type: ads1220 +cs_pin: PA0 +data_ready_pin: PA1 +[load_cell my_hx711] +sensor_type: hx711 +sclk_pin: PA2 +dout_pin: PA3 +[load_cell my_hx717] +sensor_type: hx717 +sclk_pin: PA4 +dout_pin: PA5 diff --git a/test/klippy/load_cell.test b/test/klippy/load_cell.test new file mode 100644 index 000000000..0a90ce306 --- /dev/null +++ b/test/klippy/load_cell.test @@ -0,0 +1,4 @@ +# Tests for loadcell sensors +DICTIONARY atmega2560.dict +CONFIG load_cell.cfg +G4 P1000