sensor_lis2dw: add lis3dh sensor and i2c communication

Signed-off-by: Luke Vuksta <wulfstawulfsta@gmail.com>
This commit is contained in:
Wulfsta
2024-10-17 02:38:59 -04:00
committed by KevinOConnor
parent a34034494e
commit 0f7887fffe
6 changed files with 246 additions and 58 deletions

12
klippy/extras/lis3dh.py Normal file
View File

@@ -0,0 +1,12 @@
# Support for reading acceleration data from an LIS3DH chip
#
# Copyright (C) 2024 Luke Vuksta <wulfstawulfsta@gmail.com>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
from . import lis2dw
def load_config(config):
return lis2dw.LIS2DW(config, lis2dw.LIS3DH_TYPE)
def load_config_prefix(config):
return lis2dw.LIS2DW(config, lis2dw.LIS3DH_TYPE)