We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0fc752 commit da1fed4Copy full SHA for da1fed4
adafruit_st7735.py
@@ -23,7 +23,14 @@
23
24
"""
25
26
-import displayio
+import busdisplay
27
+
28
+try:
29
+ import typing
30
31
+ import fourwire
32
+except ImportError:
33
+ pass
34
35
__version__ = "0.0.0+auto.0"
36
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_ST7735.git"
@@ -49,8 +56,8 @@
49
56
)
50
57
51
58
52
-class ST7735(displayio.Display):
59
+class ST7735(busdisplay.BusDisplay):
53
60
"""ST7735 driver"""
54
61
55
- def __init__(self, bus: displayio.FourWire, **kwargs) -> None:
62
+ def __init__(self, bus: fourwire.FourWire, **kwargs) -> None:
63
super().__init__(bus, _INIT_SEQUENCE, **kwargs)
0 commit comments