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)