Skip to content

Commit

Permalink
Better example
Browse files Browse the repository at this point in the history
  • Loading branch information
xzf89718 committed Nov 14, 2022
1 parent a810723 commit be9c92e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/minimal_AHT20.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
if (init_status == AHT20Status.AHT20_SUCCESSINIT):
while True:
temperature, humidity = triggerAndMeasure(my_wrapper)
print("{0:.2f} C {1:.2f} %RH".format(temperature, humidity * 100))
time.sleep(1)
else:
print("Fail init AHT20")
print("Fail init AHT20")

0 comments on commit be9c92e

Please sign in to comment.