Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions adafruit_ssd1608.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@

"""

import displayio
import epaperdisplay

try:
import typing

import fourwire
except ImportError:
pass

__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_SSD1608.git"
Expand All @@ -45,10 +52,10 @@
_STOP_SEQUENCE = b"\x10\x01\x01" # Enter deep sleep


class SSD1608(displayio.EPaperDisplay):
class SSD1608(epaperdisplay.EPaperDisplay):
"""SSD1608 driver"""

def __init__(self, bus: displayio.FourWire, **kwargs) -> None:
def __init__(self, bus: fourwire.FourWire, **kwargs) -> None:
start_sequence = bytearray(_START_SEQUENCE)
width = kwargs["width"]
start_sequence[4] = (width - 1) & 0xFF
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
# SPDX-License-Identifier: Unlicense

Adafruit-Blinka
Adafruit-Blinka-Displayio