From 54f1873785e218c72c131623ecc93df1f71e08f7 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Sat, 19 Feb 2022 14:22:23 -0500 Subject: documentation and such --- watch-library/shared/driver/lis2dw.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'watch-library/shared/driver') diff --git a/watch-library/shared/driver/lis2dw.c b/watch-library/shared/driver/lis2dw.c index 0b788fca..744a686b 100644 --- a/watch-library/shared/driver/lis2dw.c +++ b/watch-library/shared/driver/lis2dw.c @@ -34,6 +34,16 @@ bool lis2dw_begin(void) { // 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); + // Parameters at startup: + // * Data rate 0 (powered down) + // * Low power mode enabled + // * LP mode 1 (12-bit) + // * Bandwidth filtering ODR/2 + // * Low pass filter path + // * ±2g range + // * Low noise mode off + // * FIFO disabled + return true; } -- cgit v1.2.3