display
This commit is contained in:
parent
52a9a22442
commit
5235984ab9
2 changed files with 2 additions and 4 deletions
|
@ -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/"
|
||||
|
||||
|
|
4
oled.py
4
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()
|
||||
|
|
Loading…
Reference in a new issue