![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Test program of BMP085 pressure sensor
Fork of BMP085_lib by
test.cpp
- Committer:
- newk8600
- Date:
- 2012-11-09
- Revision:
- 6:869b95a43075
- Parent:
- 5:34e9a3921278
File content as of revision 6:869b95a43075:
/* * * * * * * * * * * * */ #include "mbed.h" #include "BMP085.h" int main() { pc.baud(9600); alt_sensor.display_cal_param(&pc); pc.printf("Temperature: %d\r\n", alt_sensor.get_temperature()); pc.printf("Pressure: %d\r\n", alt_sensor.get_pressure()); pc.printf("Altitude: %f\r\n", alt_sensor.get_altitude_ft()); }