Skip to content

resolves #13 Missing Type Annotations #16

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 6 commits into from
Aug 27, 2022
Merged
Changes from 1 commit
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
9 changes: 7 additions & 2 deletions adafruit_ssd1327.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,14 @@

# pylint: disable=too-few-public-methods
class SSD1327(displayio.Display):
"""SSD1327 driver"""
"""SSD1327 driver
kwargs:
param: height in pixels
param: width in pixels
param: optional rotation : 0 < rotation < 180 results in 90 degree rotation
"""

def __init__(self, bus, **kwargs):
def __init__(self, bus: displayio.I2CDisplay, **kwargs) -> None:
# Patch the init sequence for 32 pixel high displays.
init_sequence = bytearray(_INIT_SEQUENCE)
height = kwargs["height"]
Expand Down