from luma.core.interface.serial import i2c, spi, pcf8574 from luma.core.interface.parallel import bitbang_6800 from luma.core.render import canvas from luma.oled.device import ssd1306 from PIL import ImageFont from pathlib import Path import time serial = i2c(port=1, address=0x3C) device = ssd1306(serial) #fonts name_font=("Purisa", 20, "bold") def balance(user_name, balance): with canvas(device) as draw: pass with canvas(device) as draw: #draw.rectangle(device.bounding_box, outline="white", fill="black") draw.text((30, 0, 50), "Hello World", fill="white") draw.text((80, 0, 50), "Test", fill="white") time.sleep(10)