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.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)
|
||||||
|
|
Loading…
Reference in a new issue