File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 29
29
"""
30
30
31
31
# imports
32
-
33
- import displayio
32
+ # Support both 8.x.x and 9.x.x. Remove 8.x method when discontinued.
33
+ try :
34
+ from fourwire import FourWire # 9.x method
35
+ from busdisplay import BusDisplay
36
+ except ImportError :
37
+ from displayio import FourWire # 8.x method
38
+ from displayio import Display as BusDisplay
34
39
35
40
__version__ = "0.0.0+auto.0"
36
41
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_HX8357.git"
58
63
59
64
60
65
# pylint: disable=too-few-public-methods
61
- class HX8357 (displayio . Display ):
66
+ class HX8357 (BusDisplay ):
62
67
"""HX8357D driver"""
63
68
64
- def __init__ (self , bus : displayio . FourWire , ** kwargs ) -> None :
69
+ def __init__ (self , bus : FourWire , ** kwargs ) -> None :
65
70
super ().__init__ (bus , _INIT_SEQUENCE , ** kwargs )
You can’t perform that action at this time.
0 commit comments