Adafruit_LIS3DH
Adafruit_LIS3DH copied to clipboard
LIS3DH_DATARATE_LOWPOWER_5KHZ mode is not setting the accelerometer in 5kHz low power mode but in 1.344 kHz High resolution mode
lis.setDataRate(LIS3DH_DATARATE_LOWPOWER_5KHZ);
Above code is not setting the accelerometer in 5kHz mode but in 1.344 kHz High resolution mode. I read the LIS3DH_REG_CTRL1 register and i get a value b'1001 0111. It should be b'1001 1111 for 5kHz low power mode and the HR bit in LIS3DH_REG_CTRL4 should be 0. Read Lis3dh datasheet in page 35/54.