File tree 2 files changed +11
-4
lines changed 2 files changed +11
-4
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" ]
Original file line number Diff line number Diff line change 25
25
# Uncomment the below if you use native CircuitPython modules such as
26
26
# digitalio, micropython and busio. List the modules you use. Without it, the
27
27
# autodoc module docs will fail to generate with a warning.
28
- autodoc_mock_imports = ["displayio " ]
28
+ autodoc_mock_imports = ["busdisplay" , "fourwire " ]
29
29
30
30
31
31
intersphinx_mapping = {
You can’t perform that action at this time.
0 commit comments