增加sht20 温湿度库

This commit is contained in:
dahanzimin
2024-11-18 16:46:44 +08:00
parent 7306e999fb
commit 684b21bf19
3 changed files with 35 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ UCS_CLS_DATA = const(0x1C)
_GAINS_X = (1, 4, 8, 32, 96, 192)
class UCS1207:
class UCS12071:
def __init__(self, i2c_bus, addr=0x38, gain=2):
self._device = i2c_bus
self._address = addr