diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2022-02-19 14:03:10 -0500 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2022-02-19 14:05:38 -0500 |
commit | 09f79f782faaf2383fb7eeb1845701675a4439c8 (patch) | |
tree | 08f6c0611291e92aa60c78d353a3b31ae5c8e587 /apps | |
parent | ee60d97d25737af6e8c26415390c6a485dbf2ea0 (diff) | |
download | Sensor-Watch-09f79f782faaf2383fb7eeb1845701675a4439c8.tar.gz Sensor-Watch-09f79f782faaf2383fb7eeb1845701675a4439c8.tar.bz2 Sensor-Watch-09f79f782faaf2383fb7eeb1845701675a4439c8.zip |
lis2dw: reasonable defaults when initializing
Diffstat (limited to 'apps')
-rw-r--r-- | apps/accelerometer-test/app.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/accelerometer-test/app.c b/apps/accelerometer-test/app.c index 4a64e355..a52fbbfd 100644 --- a/apps/accelerometer-test/app.c +++ b/apps/accelerometer-test/app.c @@ -36,10 +36,10 @@ void app_init(void) { watch_enable_i2c(); lis2dw_begin(); - lis2dw_set_low_power_mode(LIS2DW_LP_MODE_2); // lowest power 14-bit mode, 25 Hz is 3.5 µA @ 1.8V w/ low noise, 3µA without - lis2dw_set_low_noise_mode(true); // consumes a little more power - lis2dw_set_range(LIS2DW_CTRL6_VAL_RANGE_4G); - lis2dw_set_data_rate(LIS2DW_DATA_RATE_25_HZ); // is this enough for training? + lis2dw_set_data_rate(LIS2DW_DATA_RATE_25_HZ); + lis2dw_set_range(LIS2DW_RANGE_4_G); + lis2dw_set_low_noise_mode(true); + lis2dw_enable_fifo(); lis2dw_enable_fifo(); |