From e365084051104fbccc972725d31508728192fd16 Mon Sep 17 00:00:00 2001 From: James Carr Date: Tue, 24 Aug 2021 16:17:37 +0100 Subject: [PATCH] Remove usage of the set_vertical_scroll Display constructor parameter. Minor docs improvements. --- adafruit_ssd1322.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/adafruit_ssd1322.py b/adafruit_ssd1322.py index 135f155..3fd480d 100644 --- a/adafruit_ssd1322.py +++ b/adafruit_ssd1322.py @@ -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. @@ -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,