This commit is contained in:
bton 2024-04-17 20:36:03 +02:00
parent 52a9a22442
commit 5235984ab9
2 changed files with 2 additions and 4 deletions

View file

@ -3,7 +3,7 @@ import nfc
import subprocess import subprocess
import requests import requests
import oled import oled
import asyncio from multiprocessing import Process
url="http://172.16.1.105/api/" url="http://172.16.1.105/api/"

View file

@ -10,13 +10,11 @@ def clear():
display.fill(0) display.fill(0)
display.show() display.show()
async def balance(user_name, balance): def balance(user_name, balance):
clear() clear()
display.text(str(user_name), 50, 0, (255,255,255), size=1) display.text(str(user_name), 50, 0, (255,255,255), size=1)
display.text(str(balance), 0, 15, (255,255,255), size=2) display.text(str(balance), 0, 15, (255,255,255), size=2)
display.show() display.show()
await time.sleep(5)
clear()
def error(code): def error(code):
clear() clear()