pimoroni / bmp280-python

Python library for the BMP280 temperature, pressure, and altitude sensor.
MIT License
55 stars 19 forks source link

Forced Mode feature addition for #2 #3

Closed Gadgetoid closed 4 years ago

Gadgetoid commented 5 years ago

This adds the ability to run the bmp280 in "forced" mode, which requests a single conversion from the sensor after which it returns to sleep mode.

If you're using a large delay between temperature readings in your code, this should help to eliminate any temperature offset caused by the internal temperature of the sensor itself.

The setup method now also accepts temperature and pressure oversampling and temperature standby (the time between measurements in normal mode) settings.

coveralls commented 5 years ago

Pull Request Test Coverage Report for Build 25


Files with Coverage Reduction New Missed Lines %
bmp280/init.py 2 97.94%
<!-- Total: 2 -->
Totals Coverage Status
Change from base Build 22: 3.6%
Covered Lines: 95
Relevant Lines: 97

💛 - Coveralls