Skip to content
Snippets Groups Projects
Commit 397336eb authored by Andreas Gattringer's avatar Andreas Gattringer
Browse files

rhtp.py: use await

parent d9c9c0e0
No related branches found
No related tags found
No related merge requests found
...@@ -22,8 +22,8 @@ async def main(): ...@@ -22,8 +22,8 @@ async def main():
p_sensor = LPS28DFW(i2c) p_sensor = LPS28DFW(i2c)
while True: while True:
t, rh = await sht45.measure() t, rh = await sht45.measure()
p = p_sensor.pressure() p = await p_sensor.pressure()
p_t = p_sensor.temperature() p_t = await p_sensor.temperature()
print(f"temperature: {t}") print(f"temperature: {t}")
print(f"rH: {rh}") print(f"rH: {rh}")
print(f"pressure: {p}") print(f"pressure: {p}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment