Seed Barometer with I2C interface, NOT working with Seed Arch BLE. Need help.
Fork of Seeed_Barometer_Sensor_Example by
main.cpp
- Committer:
- sam_grove
- Date:
- 2014-08-16
- Revision:
- 0:8381ff08ace1
- Child:
- 1:e15e9cb70711
File content as of revision 0:8381ff08ace1:
#include "mbed.h" #include "BMP085.h" BMP085 barometer(D14, D15); int main(void) { float p = 0.0f, t = 0.0f; while(1) { barometer.update(); p = barometer.get_pressure(); t = barometer.get_temperature(); printf("Pressure: %6.2f Temperature(c): %6.2f Temperature(F): %6.2f\n", p, t, 32 + t * 1.8f); wait(1.0f); } }