This commit is contained in:
Benjamin Tayehanpour 2026-10-01 19:56:13 +00:00
parent 00be941756
commit 8796110721

View file

@ -18,7 +18,7 @@ async def tcpu_monitor():
loop = asyncio.get_event_loop()
while True:
with open("/sys/class/thermal/thermal_zone0/temp") as temp:
loop.create_task(disp.write(4, f"{int(temp.read())/1000:4.1f}{chr(0b11011111)}C", 14))
loop.create_task(disp.write(3, f"{int(temp.read())/1000:4.1f}{chr(0b11011111)}C", 14))
await asyncio.sleep(1)
async def main():