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
Revision 5:64b7a81c61e4, committed 2016-05-11
- Comitter:
- SomeRandomBloke
- Date:
- Wed May 11 06:17:58 2016 +0000
- Parent:
- 4:ddcaa259e65b
- Child:
- 6:6a7fa855c18c
- Commit message:
- 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 |
--- 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
--- a/BME280.h Tue May 12 13:32:09 2015 +0000 +++ b/BME280.h Wed May 11 06:17:58 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;