diff --git a/adafruit_bmp3xx.py b/adafruit_bmp3xx.py index 35d9ae4..96b5e9d 100644 --- a/adafruit_bmp3xx.py +++ b/adafruit_bmp3xx.py @@ -15,14 +15,17 @@ **Hardware:** -* `Adafruit BMP388 `_ +* `Adafruit BMP388 - Precision Barometric Pressure and Altimeter + `_ (Product ID: 3966) **Software and Dependencies:** * Adafruit CircuitPython firmware for the supported boards: - https://github.com/adafruit/circuitpython/releases + https://circuitpython.org/downloads + +* Adafruit's Bus Device library: + https://github.com/adafruit/Adafruit_CircuitPython_BusDevice -# * Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice """ import time @@ -66,6 +69,7 @@ def __init__(self): self._read_coefficients() self.reset() self.sea_level_pressure = 1013.25 + self._wait_time = 0.002 # change this value to have faster reads if needed """Sea level pressure in hPa.""" @property @@ -141,7 +145,7 @@ def _read(self): # Wait for *both* conversions to complete while self._read_byte(_REGISTER_STATUS) & 0x60 != 0x60: - time.sleep(0.002) + time.sleep(self._wait_time) # Get ADC values data = self._read_register(_REGISTER_PRESSUREDATA, 6)