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

View File

@@ -102,7 +102,7 @@ config WANT_SENSORS
default y
config WANT_LIS2DW
bool
depends on HAVE_GPIO_SPI
depends on HAVE_GPIO_SPI || HAVE_GPIO_I2C
default y
config WANT_LDC1612
bool
@@ -141,8 +141,8 @@ config WANT_SENSORS
bool "Support external sensor devices"
depends on HAVE_GPIO_I2C || HAVE_GPIO_SPI
config WANT_LIS2DW
bool "Support lis2dw 3-axis accelerometer"
depends on HAVE_GPIO_SPI
bool "Support lis2dw and lis3dh 3-axis accelerometers"
depends on HAVE_GPIO_SPI || HAVE_GPIO_I2C
config WANT_LDC1612
bool "Support ldc1612 eddy current sensor"
depends on HAVE_GPIO_I2C