summaryrefslogtreecommitdiffstats
path: root/watch-library
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2022-02-19 14:22:23 -0500
committerJoey Castillo <joeycastillo@utexas.edu>2022-02-19 14:22:23 -0500
commit54f1873785e218c72c131623ecc93df1f71e08f7 (patch)
treef08b1d5487dc07c22a8bff22a98964113917318a /watch-library
parent09f79f782faaf2383fb7eeb1845701675a4439c8 (diff)
downloadSensor-Watch-54f1873785e218c72c131623ecc93df1f71e08f7.tar.gz
Sensor-Watch-54f1873785e218c72c131623ecc93df1f71e08f7.tar.bz2
Sensor-Watch-54f1873785e218c72c131623ecc93df1f71e08f7.zip
documentation and such
Diffstat (limited to 'watch-library')
-rw-r--r--watch-library/shared/driver/lis2dw.c10
1 files changed, 10 insertions, 0 deletions
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;
}