Srdjan Simic
/
mbed-os-pwm-mbed5-blinky
Temp and Pressure
Diff: main.cpp
- Revision:
- 3:ec7bc6955531
- Parent:
- 0:b4b35a558b4d
--- a/main.cpp Sun Feb 21 02:10:07 2021 +0000 +++ b/main.cpp Sun Feb 21 02:47:57 2021 +0000 @@ -52,8 +52,9 @@ } // bmp180.startPressure(BMP180::ULTRA_LOW_POWER); - bmp180.startPressure(BMP180::STANDARD); - wait_ms(10); // Wait for conversion to complete +// bmp180.startPressure(BMP180::STANDARD); + bmp180.startPressure(BMP180::ULTRA_HIGH_RESOLUTION); + wait_ms(80); // Wait for conversion to complete int pressure; if(bmp180.getPressure(&pressure) != 0) { printf("Error getting pressure\n");