Skip to content

displayio api updates #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 30, 2025
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