bump oversampling up!

This commit is contained in:
ladyada 2016-01-21 20:16:29 -05:00
parent b6369f7a6b
commit 3c2e13b15a
1 changed files with 5 additions and 2 deletions

View File

@ -63,8 +63,11 @@ bool Adafruit_BME280::begin(uint8_t a) {
return false; return false;
readCoefficients(); readCoefficients();
write8(BME280_REGISTER_CONTROLHUMID, 0x03); // Set before CONTROL (DS 5.4.3)
write8(BME280_REGISTER_CONTROL, 0x3F); //Set before CONTROL_meas (DS 5.4.3)
write8(BME280_REGISTER_CONTROLHUMID, 0x05); //16x oversampling
write8(BME280_REGISTER_CONTROL, 0xB7); // 16x ovesampling, normal mode
return true; return true;
} }