Skip to content

Commit da1fed4

Browse files
committed
displayio API update
1 parent f0fc752 commit da1fed4

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

adafruit_st7735.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@
2323
2424
"""
2525

26-
import displayio
26+
import busdisplay
27+
28+
try:
29+
import typing
30+
31+
import fourwire
32+
except ImportError:
33+
pass
2734

2835
__version__ = "0.0.0+auto.0"
2936
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_ST7735.git"
@@ -49,8 +56,8 @@
4956
)
5057

5158

52-
class ST7735(displayio.Display):
59+
class ST7735(busdisplay.BusDisplay):
5360
"""ST7735 driver"""
5461

55-
def __init__(self, bus: displayio.FourWire, **kwargs) -> None:
62+
def __init__(self, bus: fourwire.FourWire, **kwargs) -> None:
5663
super().__init__(bus, _INIT_SEQUENCE, **kwargs)

0 commit comments

Comments
 (0)