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

lps28dfw: implement measure

parent 397336eb
Branches
No related tags found
No related merge requests found
......@@ -182,6 +182,11 @@ class LPS28DFW:
overrun_mask = 1 << 5
return status & avail_mask == avail_mask, status & overrun_mask == overrun_mask
async def measure(self):
p = await self.pressure()
t = await self.temperature()
return p, t
async def pressure(self):
while True:
avail, overrun = self.pressure_status()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment