read pressure and temperature from LPS25h.
Dependencies: mbed
Diff: LPS25H/LPS25H.cpp
- Revision:
- 3:844fb47ba7a2
- Parent:
- 2:0c2bb6fe6885
diff -r 0c2bb6fe6885 -r 844fb47ba7a2 LPS25H/LPS25H.cpp --- a/LPS25H/LPS25H.cpp Mon Apr 13 12:54:45 2015 +0000 +++ b/LPS25H/LPS25H.cpp Sun May 10 07:00:39 2015 +0000 @@ -77,9 +77,9 @@ void LPS25H::init() { // Resolution config - put(LPS25H_RES_CONF, 0x05); + put(LPS25H_RES_CONF, 0x0A); // FIFO 4samples moving average - put(LPS25H_FIFO_CTRL, 0xC3); + put(LPS25H_FIFO_CTRL, 0xCF); // FIFO Enable put(LPS25H_CTRL_REG2, 0x40); // Power ON Cycle=12.5Hz