test
This commit is contained in:
parent
eec46a00ed
commit
26ac5319d0
1 changed files with 4 additions and 4 deletions
8
oled.py
8
oled.py
|
@ -10,13 +10,13 @@ def clear():
|
|||
display.fill(0)
|
||||
display.show()
|
||||
|
||||
def Balance(user_name, balance):
|
||||
clear()
|
||||
async def Balance(user_name, balance):
|
||||
await 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()
|
||||
time.sleep(5)
|
||||
clear()
|
||||
await time.sleep(5)
|
||||
await clear()
|
||||
|
||||
if __name__ == "__main__":
|
||||
Balance("Test", -255555)
|
||||
|
|
Loading…
Reference in a new issue