/elec/quadcopter

To get this branch, use:
bzr branch http://bzr.ed.am/elec/quadcopter

« back to all changes in this revision

Viewing changes to test/barometric-pressure/main.ino

  • Committer: dan
  • Date: 2016-04-10 17:28:24 UTC
  • Revision ID: dan-20160410172824-ev6xuubiua9rdp21
Fixed GND pin type on various components from power output to power input. Resolves ladybug check errors in escheema

Show diffs side-by-side

added added

removed removed

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