BME280 Combined humidity and pressure sensor library

Dependents:   mDot_TTN_OTAA_Node LoraGPSLogger mDot_TTN_OTAA_Node_send_data_as_string

Fork of BME280 by Toyomasa Watarai

Revision:
5:64b7a81c61e4
Parent:
4:ddcaa259e65b
Child:
6:6a7fa855c18c
--- a/BME280.cpp	Tue May 12 13:32:09 2015 +0000
+++ b/BME280.cpp	Wed May 11 06:17:58 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