File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 25
25
26
26
"""
27
27
28
- import displayio
28
+ import epaperdisplay
29
+
30
+ try :
31
+ import typing
32
+
33
+ import fourwire
34
+ except ImportError :
35
+ pass
29
36
30
37
__version__ = "0.0.0+auto.0"
31
38
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_SSD1608.git"
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 :
52
59
start_sequence = bytearray (_START_SEQUENCE )
53
60
width = kwargs ["width" ]
54
61
start_sequence [4 ] = (width - 1 ) & 0xFF
Original file line number Diff line number Diff line change 3
3
# SPDX-License-Identifier: Unlicense
4
4
5
5
Adafruit-Blinka
6
+ Adafruit-Blinka-Displayio
You can’t perform that action at this time.
0 commit comments