Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: LIS2DH/LIS2DH.cpp
- Revision:
- 9:b2cd18ee0056
- Parent:
- 8:9a1d472648dc
- Child:
- 13:0f663ca63342
--- a/LIS2DH/LIS2DH.cpp Thu Oct 31 12:17:50 2019 +0000 +++ b/LIS2DH/LIS2DH.cpp Fri Nov 01 04:56:35 2019 +0000 @@ -207,11 +207,11 @@ } */ - //ctrl_reg1.bit.ODR = dataRate; ///< set the data rate - ctrl_reg.bit.ODR0 = 0x1 - ctrl_reg.bit.ODR1 = 0x0 - ctrl_reg.bit.ODR2 = 0x1 - ctrl_reg.bit.ODR3 = 0x0 //Low power mode at 100Hz ODR0-ODR3 + ctrl_reg1.bit.ODR = 5; ///< set the data rate + //ctrl_reg.bit.ODR0 = 0x1; + //ctrl_reg.bit.ODR1 = 0x0; + //ctrl_reg.bit.ODR2 = 0x1; + //ctrl_reg.bit.ODR3 = 0x0; //Low power mode at 100Hz ODR0-ODR3 ctrl_reg1.bit.LPen = 0x1; ///< enable low power ctrl_reg1.bit.Zen = 0x1; ///< enable z ctrl_reg1.bit.Yen = 0x1; ///< enable y
