test bmp085,mpxv7002dp
Dependencies: BMP085_2 GPS mbed
Fork of HelloBMP085 by
main.cpp
- Committer:
- TakashiSasaki
- Date:
- 2013-07-29
- Revision:
- 0:4c7cde980426
- Child:
- 3:3ffa19319516
File content as of revision 0:4c7cde980426:
#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