Skip to content
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
2 changes: 0 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://pypi.org/project/adafruit-circuitpython-displayio_ssd1305/>`_. To install for current user:
Expand Down
10 changes: 8 additions & 2 deletions adafruit_displayio_ssd1305.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down