adafruit / Adafruit_BMP280_Library

Arduino Library for BMP280 sensors
253 stars 186 forks source link

Add setStandby() method. #12

Closed arantius closed 5 years ago

arantius commented 7 years ago

For setting the standby delay during readings in normal mode. This library offers no way to switch out of normal mode, and being able to set a slower measurement frequency makes the chip self-heat and alter its readings to a lesser degree.

See data sheet section 3.6.3 Normal mode:

Normal mode continuosly cycles between an (active) measurement period and an (inactive) standby period, whose time is defined by tstandby.

Call like, e.g., bme.setStandby(StandbyTime::STANDBY_500_MS);.

microbuilder commented 5 years ago

This is resolved with https://github.com/adafruit/Adafruit_BMP280_Library/commit/1267a1056d3b9266f05e1283a8242c3a457f4eb4 ... thanks!