mirror of
https://github.com/flrrth/pico-htu21d.git
synced 2025-03-15 20:54:54 +00:00
Refactor reset method
This commit is contained in:
parent
72aac5cff7
commit
8a8600969d
1 changed files with 1 additions and 3 deletions
|
@ -26,9 +26,7 @@ class HTU21D:
|
|||
|
||||
def reset(self):
|
||||
"""Reset the HTU21D."""
|
||||
txdata = bytearray(1)
|
||||
txdata[0] = 0xFE
|
||||
self._i2c.writeto(self._address, txdata)
|
||||
self._i2c.writeto(self._address, b'\xFE')
|
||||
sleep_ms(15)
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in a new issue