Organisation and delete temphumidtest

This commit is contained in:
LazyAssassin445
2017-02-28 15:47:07 +00:00
parent f06f8b1a0e
commit b830ef7d0d
7 changed files with 22 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ def reset(extra = 0):
extra
)
bus.i2c([CONFIG_REG, config >> 8, config & 0xff], 0)
time.sleep(0.2)
def temperature():
# Request temperature measurement
@@ -79,3 +80,8 @@ def drySensor():
def init():
reset()
def done():
global bus
bus.close()
del bus