This commit is contained in:
Benjamin Tayehanpour 2026-10-01 19:53:11 +00:00
parent 7a90eb6700
commit dfec2a2f3b

View file

@ -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}°C")) loop.create_task(disp.write(2, f"{int(temp.read())/1000:4.1f}{chr(0b11011111)}C"))
await asyncio.sleep(1) await asyncio.sleep(1)
async def main(): async def main():