From 26ac5319d0a0c76090989e31f2c14058e08e504d Mon Sep 17 00:00:00 2001 From: bton Date: Fri, 12 Apr 2024 22:19:33 +0200 Subject: [PATCH] test --- oled.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/oled.py b/oled.py index a3cd689..413502f 100644 --- a/oled.py +++ b/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)