From 90f43355be2a54d977c6054faeaf3f37a464efd3 Mon Sep 17 00:00:00 2001 From: Gorden Date: Fri, 30 Jul 2021 14:24:09 +0200 Subject: [PATCH] debug --- displaytest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/displaytest.py b/displaytest.py index 4c789d0..19f6622 100644 --- a/displaytest.py +++ b/displaytest.py @@ -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") \ No newline at end of file