Skip to content

Commit 08e07a8

Browse files
authored
Merge pull request #5 from dherrada/master
Added time.sleep at the end of __init__
2 parents b84a867 + 38af9b5 commit 08e07a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adafruit_htu21d.py

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
except ImportError:
5050
import ustruct as struct
5151

52+
import time
5253
from adafruit_bus_device.i2c_device import I2CDevice
5354
from micropython import const
5455

@@ -87,6 +88,7 @@ def __init__(self, i2c_bus, address=0x40):
8788
self.i2c_device = I2CDevice(i2c_bus, address)
8889
self._command(_RESET)
8990
self._measurement = 0
91+
time.sleep(0.01)
9092

9193
def _command(self, command):
9294
with self.i2c_device as i2c:

0 commit comments

Comments
 (0)