debug
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ DC_PIN = 24
|
||||
serial = spi(device=0, port=0, bus_speed_hz = 8000000, transfer_size = 4096, gpio_DC = DC_PIN, gpio_RST = RST_PIN)
|
||||
device = sh1106(serial, rotate=2) #sh1106
|
||||
|
||||
oled_font = ImageFont.truetype('FreeSans.ttf', 14)
|
||||
oled_font = ImageFont.load_default()
|
||||
with canvas(device) as draw:
|
||||
draw.rectangle(device.bounding_box, outline = "white", fill = "black")
|
||||
draw.text((10, 10), "OLED-Display", font = oled_font, fill = "white")
|
||||
Reference in New Issue
Block a user