![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Test program of BMP085 pressure sensor
Fork of BMP085_lib by
Diff: test.cpp
- Revision:
- 5:34e9a3921278
- Parent:
- 2:227f0a670091
- Child:
- 6:869b95a43075
diff -r 227f0a670091 -r 34e9a3921278 test.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test.cpp Fri Nov 09 19:29:16 2012 +0000 @@ -0,0 +1,30 @@ +/* +* +* +* +* +* +* +* +* +* +* +* +*/ + +#include "mbed.h" +#include "BMP085.h" + + +int main() +{ + + + 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()); +} + +