File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 21
21
22
22
"""
23
23
24
- import displayio
24
+ # For 8.x.x and 9.x.x. When 8.x.x is discontinued as a stable release, change this.
25
+ try :
26
+ from fourwire import FourWire
27
+ from epaperdisplay import EPaperDisplay
28
+ except ImportError :
29
+ from displayio import FourWire
30
+ from displayio import EPaperDisplay
25
31
26
32
__version__ = "0.0.0+auto.0"
27
33
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_ACeP7In.git"
53
59
54
60
55
61
# pylint: disable=too-few-public-methods
56
- class ACeP7In (displayio . EPaperDisplay ):
62
+ class ACeP7In (EPaperDisplay ):
57
63
r"""Display driver for 7" ACeP epaper display. Driver IC name is unknown.
58
64
59
65
:param bus: The data bus the display is on
@@ -69,7 +75,7 @@ class ACeP7In(displayio.EPaperDisplay):
69
75
Display rotation
70
76
"""
71
77
72
- def __init__ (self , bus , ** kwargs ):
78
+ def __init__ (self , bus : FourWire , ** kwargs ):
73
79
width = kwargs ["width" ]
74
80
height = kwargs ["height" ]
75
81
if "rotation" in kwargs and kwargs ["rotation" ] % 180 != 0 :
Original file line number Diff line number Diff line change 27
27
# Uncomment the below if you use native CircuitPython modules such as
28
28
# digitalio, micropython and busio. List the modules you use. Without it, the
29
29
# autodoc module docs will fail to generate with a warning.
30
- # autodoc_mock_imports = ["digitalio", "busio "]
30
+ autodoc_mock_imports = ["displayio " ]
31
31
32
32
autodoc_preserve_defaults = True
33
33
You can’t perform that action at this time.
0 commit comments