hx71x: Avoid base classes to improve python2 compatibility

Also, add a load_cell regression test case.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2024-09-03 22:11:03 -04:00
parent 14a83103c3
commit 293858c51f
4 changed files with 43 additions and 17 deletions

23
test/klippy/load_cell.cfg Normal file
View File

@@ -0,0 +1,23 @@
# 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

View File

@@ -0,0 +1,5 @@
# Tests for loadcell sensors
DICTIONARY atmega2560.dict
CONFIG load_cell.cfg
G4 P1000