Skip to content
Merged
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
10 changes: 8 additions & 2 deletions adafruit_ssd1322.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,14 @@

# pylint: disable=too-few-public-methods
class SSD1322(displayio.Display):
"""SSD1322 driver"""
"""
SSD1322 driver

:param int width: The width of the display
:param int height: The height of the display
:param int rotation: The rotation of the display in degrees. Default is 0. Must be one of
(0, 90, 180, 270)
"""

def __init__(self, bus, **kwargs):
# Patch the init sequence for 32 pixel high displays.
Expand All @@ -81,7 +88,6 @@ def __init__(self, bus, **kwargs):
grayscale=True,
set_column_command=0x15,
set_row_command=0x75,
set_vertical_scroll=0xD3,
write_ram_command=0x5C,
single_byte_bounds=True,
reverse_pixels_in_byte=True,
Expand Down