Skip to content

Commit b26ea25

Browse files
author
Dylan Herrada
committed
Added time.sleep at the end of __init__
1 parent b84a867 commit b26ea25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adafruit_htu21d.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
from adafruit_bus_device.i2c_device import I2CDevice
5353
from micropython import const
5454

55+
import time
56+
5557
__version__ = "0.0.0-auto.0"
5658
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_HTU21D.git"
5759

@@ -87,6 +89,7 @@ def __init__(self, i2c_bus, address=0x40):
8789
self.i2c_device = I2CDevice(i2c_bus, address)
8890
self._command(_RESET)
8991
self._measurement = 0
92+
time.sleep(0.01)
9093

9194
def _command(self, command):
9295
with self.i2c_device as i2c:

0 commit comments

Comments
 (0)