aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/load_cell.py
diff options
context:
space:
mode:
authorGareth Farrington <gareth@waves.ky>2024-06-02 22:33:45 -0700
committerKevin O'Connor <kevin@koconnor.net>2024-07-31 21:22:33 -0400
commit055f07c6389fdae1be0ecafbe5b114ab08813fdd (patch)
tree953584f9f6a557183ea4b76c481cd351cdd10d35 /klippy/extras/load_cell.py
parentc0095812ff18687ed25ce0f1ed468ebed8f81cfe (diff)
downloadkutter-055f07c6389fdae1be0ecafbe5b114ab08813fdd.tar.gz
kutter-055f07c6389fdae1be0ecafbe5b114ab08813fdd.tar.xz
kutter-055f07c6389fdae1be0ecafbe5b114ab08813fdd.zip
ads1220: Add ADS1220 bulk sensor to load_cell
Add support for the ADS1220 as an alternative to HX71x that supports SPI and higher sample rates. Signed-off-by: Gareth Farrington <gareth@waves.ky>
Diffstat (limited to 'klippy/extras/load_cell.py')
-rw-r--r--klippy/extras/load_cell.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/extras/load_cell.py b/klippy/extras/load_cell.py
index 7210f230..f6725d18 100644
--- a/klippy/extras/load_cell.py
+++ b/klippy/extras/load_cell.py
@@ -4,6 +4,7 @@
#
# This file may be distributed under the terms of the GNU GPLv3 license.
from . import hx71x
+from . import ads1220
# Printer class that controls a load cell
class LoadCell:
@@ -29,6 +30,7 @@ def load_config(config):
# Sensor types
sensors = {}
sensors.update(hx71x.HX71X_SENSOR_TYPES)
+ sensors.update(ads1220.ADS1220_SENSOR_TYPE)
sensor_class = config.getchoice('sensor_type', sensors)
return LoadCell(config, sensor_class(config))