![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
main.cpp
- Committer:
- gbeardall
- Date:
- 2011-10-17
- Revision:
- 0:2005beefb93e
File content as of revision 0:2005beefb93e:
#include "mbed.h" #include "BMP085.h" BMP085 bmp085(p28, p27); //bmp085(p9, p10); // sda, scl 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\r", bmp085.get_pressure(), bmp085.get_temperature()); myled = 0; wait(3); } }