quadcopter cufe
/
waterRocketBest
BMP085 test
Fork of bmp085_lib by
Diff: main.cpp
- Revision:
- 0:dbba605ca87c
- Child:
- 2:5a2a1d891d40
diff -r 000000000000 -r dbba605ca87c main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Sep 27 15:55:35 2010 +0000 @@ -0,0 +1,19 @@ +#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); + } +}