From 8ab404f5acfaff3b0836d94f9e4601f04a363440 Mon Sep 17 00:00:00 2001 From: James Carr Date: Tue, 24 Aug 2021 15:49:10 +0100 Subject: [PATCH] Remove usage of the set_vertical_scroll Display constructor parameter. Minor docs improvements. --- README.rst | 2 -- adafruit_displayio_ssd1305.py | 10 ++++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index f132001..d155335 100644 --- a/README.rst +++ b/README.rst @@ -30,8 +30,6 @@ This is easily achieved by downloading Installing from PyPI ===================== -.. note:: This library is not available on PyPI yet. Install documentation is included - as a standard element. Stay tuned for PyPI availability! On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from PyPI `_. To install for current user: diff --git a/adafruit_displayio_ssd1305.py b/adafruit_displayio_ssd1305.py index aafde65..6f7a064 100644 --- a/adafruit_displayio_ssd1305.py +++ b/adafruit_displayio_ssd1305.py @@ -56,7 +56,14 @@ # pylint: disable=too-few-public-methods class SSD1305(displayio.Display): - """SSD1305 driver""" + """ + SSD1305 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. + One of (0, 90, 180, 270) + """ def __init__(self, bus, **kwargs): colstart = 0 @@ -80,7 +87,6 @@ def __init__(self, bus, **kwargs): set_column_command=0x21, set_row_command=0x22, data_as_commands=True, - set_vertical_scroll=0xD3, brightness_command=0x81, single_byte_bounds=True, colstart=colstart,