From 0972670c57c0323c38fc22e26a0f4f8fd92bde24 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Wed, 21 May 2025 15:04:27 -0500 Subject: [PATCH] displayio api update --- examples/tca8418_3x4_OLED.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/tca8418_3x4_OLED.py b/examples/tca8418_3x4_OLED.py index 2db2c54..44e7a15 100644 --- a/examples/tca8418_3x4_OLED.py +++ b/examples/tca8418_3x4_OLED.py @@ -7,6 +7,7 @@ import adafruit_displayio_ssd1306 import board import displayio +import i2cdisplaybus import terminalio from adafruit_display_text import label @@ -19,7 +20,7 @@ i2c = board.I2C() # uses board.SCL and board.SDA # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller tca = TCA8418(i2c) -display_bus = displayio.I2CDisplay(i2c, device_address=0x3D, reset=oled_reset) +display_bus = i2cdisplaybus.I2CDisplayBus(i2c, device_address=0x3D, reset=oled_reset) keymap = (("*", "0", "#"), ("7", "8", "9"), ("4", "5", "6"), ("1", "2", "3"))