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 8a89036 commit a741cb1Copy full SHA for a741cb1
adafruit_ssd1608.py
@@ -25,7 +25,14 @@
25
26
"""
27
28
-import displayio
+import epaperdisplay
29
+
30
+try:
31
+ import typing
32
33
+ import fourwire
34
+except ImportError:
35
+ pass
36
37
__version__ = "0.0.0+auto.0"
38
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_SSD1608.git"
@@ -45,10 +52,10 @@
45
52
_STOP_SEQUENCE = b"\x10\x01\x01" # Enter deep sleep
46
53
47
54
48
-class SSD1608(displayio.EPaperDisplay):
55
+class SSD1608(epaperdisplay.EPaperDisplay):
49
56
"""SSD1608 driver"""
50
57
51
- def __init__(self, bus: displayio.FourWire, **kwargs) -> None:
58
+ def __init__(self, bus: fourwire.FourWire, **kwargs) -> None:
59
start_sequence = bytearray(_START_SEQUENCE)
60
width = kwargs["width"]
61
start_sequence[4] = (width - 1) & 0xFF
0 commit comments