Skip to content

Commit 979b5a3

Browse files
authored
Merge pull request #17 from FoamyGuy/displayio_api_update
displayio api update
2 parents b25160c + 0972670 commit 979b5a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/tca8418_3x4_OLED.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import adafruit_displayio_ssd1306
88
import board
99
import displayio
10+
import i2cdisplaybus
1011
import terminalio
1112
from adafruit_display_text import label
1213

@@ -19,7 +20,7 @@
1920
i2c = board.I2C() # uses board.SCL and board.SDA
2021
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
2122
tca = TCA8418(i2c)
22-
display_bus = displayio.I2CDisplay(i2c, device_address=0x3D, reset=oled_reset)
23+
display_bus = i2cdisplaybus.I2CDisplayBus(i2c, device_address=0x3D, reset=oled_reset)
2324

2425
keymap = (("*", "0", "#"), ("7", "8", "9"), ("4", "5", "6"), ("1", "2", "3"))
2526

0 commit comments

Comments
 (0)