From c05d4127ef488ab693800a5cb6d9574dad1e0a9c Mon Sep 17 00:00:00 2001 From: bton Date: Wed, 10 Apr 2024 21:40:36 +0200 Subject: [PATCH] test --- oled.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oled.py b/oled.py index 4bf9641..bdf965e 100644 --- a/oled.py +++ b/oled.py @@ -2,6 +2,7 @@ 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, ssd1309, ssd1325, ssd1331, sh1106, sh1107, ws0010 +import time serial = i2c(port=1, address=0x3C) @@ -10,3 +11,4 @@ device = ssd1306(serial) with canvas(device) as draw: #draw.rectangle(device.bounding_box, outline="white", fill="black") draw.text((30, 0), "Hello World", fill="white") +time.sleep(10)