File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 26
26
27
27
"""
28
28
29
- import displayio
29
+ import busdisplay
30
+
31
+ try :
32
+ import typing
33
+
34
+ import fourwire
35
+ except ImportError :
36
+ pass
30
37
31
38
__version__ = "0.0.0+auto.0"
32
39
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_SSD1322.git"
63
70
)
64
71
65
72
66
- class SSD1322 (displayio . Display ):
73
+ class SSD1322 (busdisplay . BusDisplay ):
67
74
"""
68
75
SSD1322 driver
69
76
@@ -73,7 +80,7 @@ class SSD1322(displayio.Display):
73
80
(0, 90, 180, 270)
74
81
"""
75
82
76
- def __init__ (self , bus : displayio .FourWire , ** kwargs ) -> None :
83
+ def __init__ (self , bus : fourwire .FourWire , ** kwargs ) -> None :
77
84
# Patch the init sequence for 32 pixel high displays.
78
85
init_sequence = bytearray (_INIT_SEQUENCE )
79
86
height = kwargs ["height" ]
You can’t perform that action at this time.
0 commit comments