From 54762248a33e3a26701966d403ada6eb5bba86a5 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Sun, 9 Jan 2022 12:06:44 -0500 Subject: use lowest power LP mode --- watch-library/driver/lis2dw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'watch-library/driver/lis2dw.c') diff --git a/watch-library/driver/lis2dw.c b/watch-library/driver/lis2dw.c index f9cd5cc1..4e0cc473 100644 --- a/watch-library/driver/lis2dw.c +++ b/watch-library/driver/lis2dw.c @@ -32,7 +32,7 @@ bool lis2dw_begin(void) { watch_i2c_write8(LIS2DW_ADDRESS, LIS2DW_REG_CTRL2, LIS2DW_CTRL2_VAL_BOOT); watch_i2c_write8(LIS2DW_ADDRESS, LIS2DW_REG_CTRL2, LIS2DW_CTRL2_VAL_SOFT_RESET); // Start at lowest possible data rate and lowest possible power mode - watch_i2c_write8(LIS2DW_ADDRESS, LIS2DW_REG_CTRL1, LIS2DW_CTRL1_VAL_ODR_LOWEST | LIS2DW_CTRL1_VAL_MODE_LOW_POWER | LIS2DW_CTRL1_VAL_LPMODE_4); + watch_i2c_write8(LIS2DW_ADDRESS, LIS2DW_REG_CTRL1, LIS2DW_CTRL1_VAL_ODR_LOWEST | LIS2DW_CTRL1_VAL_MODE_LOW_POWER | LIS2DW_CTRL1_VAL_LPMODE_1); // Enable block data update (output registers not updated until MSB and LSB have been read) and address autoincrement watch_i2c_write8(LIS2DW_ADDRESS, LIS2DW_REG_CTRL2, LIS2DW_CTRL2_VAL_BDU | LIS2DW_CTRL2_VAL_IF_ADD_INC); // Set range to ±2G -- cgit v1.2.3