libraries / bmp180 / bmp180.hon commit Added link to project report (97a3ba0)
   1/*
   2* bmp180.h - Library for communicating with BMP180 sensor
   3* Created by Andrew Lorimer, original code by Leo Nutz (http://www.ALTDuino.de)
   4*/
   5
   6#ifndef bmp180_h
   7#define bmp180_h
   8
   9  #include "Arduino.h"
  10  #include <OneWire.h>      // Used for BMP180
  11  #include <Wire.h>         // Used for BMP180 (I2C communication)
  12
  13  class bmp180 {
  14    public:
  15      bmp180(int pin);
  16      void readTemperature();
  17      void readPressure();
  18
  19    private:
  20      int _pin;
  21      const unsigned char _OSS = 0;  // Oversampling Setting
  22      int _ac1; // Calibration values
  23      int _ac2;
  24      int _ac3;
  25      unsigned int _ac4;
  26      unsigned int _ac5;
  27      unsigned int _ac6;
  28      int _b1;
  29      int _b2;
  30      int _mb;
  31      int _mc;
  32      int _md;
  33      long _b5;
  34  }
  35
  36#endif