adafruit / Adafruit_BME280_Library

Arduino Library for BME280 sensors
Other
328 stars 301 forks source link

To high delay in init() method #64

Closed marcin1mn closed 4 years ago

marcin1mn commented 4 years ago

Why in init() method is so big delay? https://github.com/adafruit/Adafruit_BME280_Library/blob/master/Adafruit_BME280.cpp#L147 https://github.com/adafruit/Adafruit_BME280_Library/blob/master/Adafruit_BME280.cpp#L151

I tested witch 25 delay on ESP8266 and is also fine. It's wasting energy of battery.

ladyada commented 4 years ago

hiya please check the datasheet to see if there's a wake up time required

marcin1mn commented 4 years ago

As you can see on datasheet, BME280 requires only 2ms to start up. Page number: 7 https://cdn-shop.adafruit.com/datasheets/BST-BME280_DS001-10.pdf

ladyada commented 4 years ago

ok try changing it to 5 ms :)