diff --git a/NFC_Reader.py b/NFC_Reader.py index 9c8dc39..a2d0331 100644 --- a/NFC_Reader.py +++ b/NFC_Reader.py @@ -3,7 +3,7 @@ import nfc import subprocess import requests import oled -import asyncio +from multiprocessing import Process url="http://172.16.1.105/api/" diff --git a/oled.py b/oled.py index 22f1fbb..4ea4578 100644 --- a/oled.py +++ b/oled.py @@ -10,13 +10,11 @@ def clear(): display.fill(0) display.show() -async def balance(user_name, balance): +def balance(user_name, balance): clear() display.text(str(user_name), 50, 0, (255,255,255), size=1) display.text(str(balance), 0, 15, (255,255,255), size=2) display.show() - await time.sleep(5) - clear() def error(code): clear()