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.
Dependents: Drones-Controlador controladoatitude_cteste Drone_Controlador_Atitude optical_test
Diff: LPS25H/LPS25H.cpp
- Revision:
- 4:d55264b2cad5
- Parent:
- 3:2f2b8e863991
--- a/LPS25H/LPS25H.cpp Thu Apr 19 19:41:02 2018 +0000 +++ b/LPS25H/LPS25H.cpp Thu Apr 19 19:44:07 2018 +0000 @@ -5,8 +5,19 @@ { } +/** Init barometer */ +void LPS25H::init() +{ + init_baro(); +} +/** Read barometer */ +void LPS25H::read() +{ + read_baro(); +} + /** Initialize barometer */ -void LPS25H::setup() +void LPS25H::init_baro() { // LPS25H I2C address char address = LPS25H_ADDRESS; @@ -18,12 +29,6 @@ } /** Read barometer */ -void LPS25H::read() -{ - read_baro(); -} - -/** Read barometer output data */ void LPS25H::read_baro() { // LPS25H I2C address