File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 15
15
16
16
**Hardware:**
17
17
18
- * `Adafruit BMP388 <https://www.adafruit.com/product/3966>`_
18
+ * `Adafruit BMP388 - Precision Barometric Pressure and Altimeter
19
+ <https://www.adafruit.com/product/3966>`_ (Product ID: 3966)
19
20
20
21
**Software and Dependencies:**
21
22
22
23
* Adafruit CircuitPython firmware for the supported boards:
23
- https://github.com/adafruit/circuitpython/releases
24
+ https://circuitpython.org/downloads
25
+
26
+ * Adafruit's Bus Device library:
27
+ https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
24
28
25
- # * Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
26
29
"""
27
30
28
31
import time
@@ -66,6 +69,7 @@ def __init__(self):
66
69
self ._read_coefficients ()
67
70
self .reset ()
68
71
self .sea_level_pressure = 1013.25
72
+ self ._wait_time = 0.002 # change this value to have faster reads if needed
69
73
"""Sea level pressure in hPa."""
70
74
71
75
@property
@@ -141,7 +145,7 @@ def _read(self):
141
145
142
146
# Wait for *both* conversions to complete
143
147
while self ._read_byte (_REGISTER_STATUS ) & 0x60 != 0x60 :
144
- time .sleep (0.002 )
148
+ time .sleep (self . _wait_time )
145
149
146
150
# Get ADC values
147
151
data = self ._read_register (_REGISTER_PRESSUREDATA , 6 )
You can’t perform that action at this time.
0 commit comments