Skip to content

Commit 3c2e13b

Browse files
committed
bump oversampling up!
1 parent b6369f7 commit 3c2e13b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Adafruit_BME280.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,11 @@ bool Adafruit_BME280::begin(uint8_t a) {
6363
return false;
6464

6565
readCoefficients();
66-
write8(BME280_REGISTER_CONTROLHUMID, 0x03); // Set before CONTROL (DS 5.4.3)
67-
write8(BME280_REGISTER_CONTROL, 0x3F);
66+
67+
//Set before CONTROL_meas (DS 5.4.3)
68+
write8(BME280_REGISTER_CONTROLHUMID, 0x05); //16x oversampling
69+
70+
write8(BME280_REGISTER_CONTROL, 0xB7); // 16x ovesampling, normal mode
6871
return true;
6972
}
7073

0 commit comments

Comments
 (0)