We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 318333e commit 163a192Copy full SHA for 163a192
adafruit_si7021/__init__.py
@@ -25,6 +25,7 @@
25
* Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
26
"""
27
import struct
28
+import time
29
30
from adafruit_bus_device.i2c_device import I2CDevice
31
from micropython import const
@@ -137,6 +138,7 @@ class SI7021:
137
138
def __init__(self, i2c_bus: I2C, address: int = 0x40) -> None:
139
self.i2c_device = I2CDevice(i2c_bus, address)
140
self._command(_RESET)
141
+ time.sleep(0.015)
142
# Make sure the USER1 settings are correct.
143
while True:
144
# While restarting, the sensor doesn't respond to reads or writes.
0 commit comments