stuff
This commit is contained in:
parent
dfec2a2f3b
commit
00be941756
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ async def tcpu_monitor():
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
while True:
|
while True:
|
||||||
with open("/sys/class/thermal/thermal_zone0/temp") as temp:
|
with open("/sys/class/thermal/thermal_zone0/temp") as temp:
|
||||||
loop.create_task(disp.write(2, f"{int(temp.read())/1000:4.1f}{chr(0b11011111)}C"))
|
loop.create_task(disp.write(4, f"{int(temp.read())/1000:4.1f}{chr(0b11011111)}C", 14))
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(1)
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue