bzr branch
http://bzr.ed.am/elec/quadcopter
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
#include "Wire.h" #include "BMP085.h" BMP085 bmp; void setup() { Serial.begin(9600); bmp.begin(); } void loop() { Serial.print("Temperature = "); Serial.print(bmp.readTemperature()); Serial.println(" *C"); Serial.print("Pressure = "); Serial.print(bmp.readPressure()); Serial.println(" Pa"); Serial.println(); delay(500); } |