Class for using BMP180 Bosch Pressure sensor

Dependents:   ILI9341_Clock_Nucleo IoT-Polytech-Upmc

Revision:
1:4c6b41f1203d
Parent:
0:b899fe37ce17
Child:
2:4749ef781396
diff -r b899fe37ce17 -r 4c6b41f1203d BMP180.h
--- a/BMP180.h	Tue Nov 26 05:40:44 2013 +0000
+++ b/BMP180.h	Tue Nov 26 08:29:44 2013 +0000
@@ -40,8 +40,8 @@
 
 #include "mbed.h"
 
-#define EEprom 22           // The EEPROM has 176bits of calibration data (176/8 = 22 Bytes)
-#define BMP180ADDR 0xEF     // I2C address of BMP180 device
+#define EEprom 22            // The EEPROM has 176bits of calibration data (176/8 = 22 Bytes)
+#define BMP180ADDR 0xEF      // I2C address of BMP180 device
 #define BMP180FREQ 1000000   // Data sheet says 3.4 MHz is max but not sure what mbed can do here!
 #define CMD_READ_VALUE 0xF6
 #define CMD_READ_CALIBRATION 0xAA
@@ -100,8 +100,7 @@
     char w[2];
 
     I2C bmp180i2c;              // the I2C class for this bmp180 communication.
-    //int rTemp(long *ut);        // raw temperature reading. Note this returns when reading is done.
-    //int rPressure(long *up);    // raw pressure reading. Note this returns when reading is done.
+    int oversampleCheck(int oversample);
 };
 
 #endif
\ No newline at end of file