From 3c2e13b15a47ae00a0deee6345f04f81c1b4e95e Mon Sep 17 00:00:00 2001 From: ladyada Date: Thu, 21 Jan 2016 20:16:29 -0500 Subject: [PATCH] bump oversampling up! --- Adafruit_BME280.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Adafruit_BME280.cpp b/Adafruit_BME280.cpp index f662916..4f9cd22 100644 --- a/Adafruit_BME280.cpp +++ b/Adafruit_BME280.cpp @@ -63,8 +63,11 @@ bool Adafruit_BME280::begin(uint8_t a) { return false; 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; }