Skip to content

displayio API update #25

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 22, 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_ssd1322.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@

"""

import displayio
import busdisplay

try:
import typing

import fourwire
except ImportError:
pass

__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_SSD1322.git"
Expand Down Expand Up @@ -63,7 +70,7 @@
)


class SSD1322(displayio.Display):
class SSD1322(busdisplay.BusDisplay):
"""
SSD1322 driver

Expand All @@ -73,7 +80,7 @@ class SSD1322(displayio.Display):
(0, 90, 180, 270)
"""

def __init__(self, bus: displayio.FourWire, **kwargs) -> None:
def __init__(self, bus: fourwire.FourWire, **kwargs) -> None:
# Patch the init sequence for 32 pixel high displays.
init_sequence = bytearray(_INIT_SEQUENCE)
height = kwargs["height"]
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# Uncomment the below if you use native CircuitPython modules such as
# digitalio, micropython and busio. List the modules you use. Without it, the
# autodoc module docs will fail to generate with a warning.
autodoc_mock_imports = ["displayio"]
autodoc_mock_imports = ["busdisplay", "fourwire"]


intersphinx_mapping = {
Expand Down