Skip to content
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

9x compatibility #32

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
16 changes: 13 additions & 3 deletions adafruit_il0373.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,21 @@

"""

import displayio
try:
from epaperdisplay import EPaperDisplay
except ImportError:
from displayio import EPaperDisplay

try:
from typing import Optional
from displayio import FourWire

# Compatibility with both CircuitPython 8.x.x and 9.x.x.
# Remove after 8.x.x is no longer a supported release.
try:
from fourwire import FourWire
except ImportError:
# pylint: disable=ungrouped-imports
from displayio import FourWire
except ImportError:
pass

Expand Down Expand Up @@ -115,7 +125,7 @@


# pylint: disable=too-few-public-methods
class IL0373(displayio.EPaperDisplay):
class IL0373(EPaperDisplay):
r"""IL0373 driver

:param bus: The data bus the display is on
Expand Down
Loading