diff --git a/oled.py b/oled.py index 6150bf2..513e0d2 100644 --- a/oled.py +++ b/oled.py @@ -21,6 +21,6 @@ def balance(user_name, balance): with canvas(device) as draw: #draw.rectangle(device.bounding_box, outline="white", fill="black") - draw.text(user_id_position, "1", fill="white", font=(user_id_font)) - draw.text(name_position, "Test", fill="white", font=(name_font)) + draw.create_text(user_id_position, "1", fill="white", font=(user_id_font)) + draw.create_text(name_position, "Test", fill="white", font=(name_font)) time.sleep(10)