This commit is contained in:
bton 2024-04-12 22:19:33 +02:00
parent eec46a00ed
commit 26ac5319d0

View file

@ -10,13 +10,13 @@ def clear():
display.fill(0) display.fill(0)
display.show() display.show()
def Balance(user_name, balance): async def Balance(user_name, balance):
clear() await 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()
time.sleep(5) await time.sleep(5)
clear() await clear()
if __name__ == "__main__": if __name__ == "__main__":
Balance("Test", -255555) Balance("Test", -255555)