sensor

Dependents:   enviro_copy

Revision:
8:d22ecbef9b90
Parent:
7:c72b726c7dc9
Child:
9:e267adc73ab2
--- a/BMP280.h	Tue Apr 19 02:03:35 2016 +0000
+++ b/BMP280.h	Thu May 25 20:22:32 2017 +0000
@@ -18,7 +18,9 @@
 #include "mbed.h"
 
 //#define _DEBUG
-#define DEFAULT_SLAVE_ADDRESS (0x77 << 1)
+// default address with SDO High 0x77
+// address with SDO LOW 0x76
+#define DEFAULT_SLAVE_ADDRESS (0x77)
 
 #ifdef _DEBUG
 extern Serial pc;
@@ -30,7 +32,8 @@
  
 /** BME280 class
  *
- *  BME280: A library to correct environmental data using Boshe BME280 device
+ *  BME280: A library to read environmental data using Bosch BME280 device
+ * Readds temperature and pressure
  *
  *  BME280 is an environmental sensor
  *  @endcode
@@ -45,7 +48,7 @@
      *
      * @param sda I2C-bus SDA pin
      * @param scl I2C-bus SCL pin
-     * @param slave_adr (option) I2C-bus address (default: 0x76)
+     * @param slave_adr (option) I2C-bus address (default: 0x77)
      */
     BMP280(PinName sda, PinName sck, char slave_adr = DEFAULT_SLAVE_ADDRESS);
 
@@ -53,7 +56,7 @@
      *  which is connected to specified I2C pins with specified address
      *
      * @param i2c_obj I2C object (instance)
-     * @param slave_adr (option) I2C-bus address (default: 0x76)
+     * @param slave_adr (option) I2C-bus address (default: 0x77)
      */
     BMP280(I2C &i2c_obj, char slave_adr = DEFAULT_SLAVE_ADDRESS);