Dependents:   ENV_NODE_REQUEST_POC ENV_F303K8

Fork of BME280 by Toyomasa Watarai

Files at this revision

API Documentation at this revision

Comitter:
SomeRandomBloke
Date:
Thu Feb 25 22:17:49 2016 +0000
Parent:
4:ddcaa259e65b
Commit message:
First commit

Changed in this revision

BME280.cpp Show annotated file Show diff for this revision Revisions of this file
BME280.h Show annotated file Show diff for this revision Revisions of this file
diff -r ddcaa259e65b -r 680e6b5d1bc9 BME280.cpp
--- a/BME280.cpp	Tue May 12 13:32:09 2015 +0000
+++ b/BME280.cpp	Thu Feb 25 22:17:49 2016 +0000
@@ -46,11 +46,11 @@
     char cmd[18];
  
     cmd[0] = 0xf2; // ctrl_hum
-    cmd[1] = 0x01; // Humidity oversampling x1
+    cmd[1] = 0x05; // Humidity oversampling x16
     i2c.write(address, cmd, 2);
  
     cmd[0] = 0xf4; // ctrl_meas
-    cmd[1] = 0x27; // Temparature oversampling x1, Pressure oversampling x1, Normal mode
+    cmd[1] = 0xB7; // Temparature oversampling x16, Pressure oversampling x16, Normal mode
     i2c.write(address, cmd, 2);
  
     cmd[0] = 0xf5; // config
diff -r ddcaa259e65b -r 680e6b5d1bc9 BME280.h
--- a/BME280.h	Tue May 12 13:32:09 2015 +0000
+++ b/BME280.h	Thu Feb 25 22:17:49 2016 +0000
@@ -18,7 +18,7 @@
 #include "mbed.h"
 
 //#define _DEBUG
-#define DEFAULT_SLAVE_ADDRESS (0x76 << 1)
+#define DEFAULT_SLAVE_ADDRESS (0x77 << 1)
 
 #ifdef _DEBUG
 extern Serial pc;