![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
test bmp085,mpxv7002dp
Dependencies: BMP085_2 GPS mbed
Fork of HelloBMP085 by
Diff: main.cpp
- Revision:
- 0:4c7cde980426
- Child:
- 3:3ffa19319516
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Jul 29 07:53:31 2013 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" +#include "BMP085.h" + +DigitalOut myled(LED1); +BMP085 bmp085(p28, p27); +Serial pc(USBTX, USBRX); + +int main() { + pc.printf("main\n"); + float p, t; + + while(1) { + myled = 1; + bmp085.update(); + p = bmp085.get_pressure(); + t = bmp085.get_temperature(); + pc.printf("P %6.2f t %6.2f\n", p, t); + myled = 0; + wait(3); + }//while +}//main