quadcopter cufe
/
waterRocketBest
BMP085 test
Fork of bmp085_lib by
main.cpp
- Committer:
- okini3939
- Date:
- 2010-09-27
- Revision:
- 0:dbba605ca87c
- Child:
- 2:5a2a1d891d40
File content as of revision 0:dbba605ca87c:
#include "mbed.h" #include "BMP085.h" BMP085 bmp085(p9, p10); DigitalOut myled(LED1); Serial pc(USBTX, USBRX); int main() { while(1) { myled = 1; bmp085.update(); pc.printf("p:%6.2f hPa / t:%6.2f C\n", bmp085.get_pressure(), bmp085.get_temperature()); myled = 0; wait(3); } }