From 5235984ab971e0b9c8ccfac3bb6500e881b923fa Mon Sep 17 00:00:00 2001 From: bton Date: Wed, 17 Apr 2024 20:36:03 +0200 Subject: [PATCH] display --- NFC_Reader.py | 2 +- oled.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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()