Skip to content

Commit 54026d0

Browse files
authored
Merge pull request #13 from lesamouraipourpre/vertical-scroll
Remove usage of the set_vertical_scroll Display constructor parameter.
2 parents 3b8ee76 + 8ab404f commit 54026d0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

README.rst

-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ This is easily achieved by downloading
3030

3131
Installing from PyPI
3232
=====================
33-
.. note:: This library is not available on PyPI yet. Install documentation is included
34-
as a standard element. Stay tuned for PyPI availability!
3533

3634
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
3735
PyPI <https://pypi.org/project/adafruit-circuitpython-displayio_ssd1305/>`_. To install for current user:

adafruit_displayio_ssd1305.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,14 @@
5656

5757
# pylint: disable=too-few-public-methods
5858
class SSD1305(displayio.Display):
59-
"""SSD1305 driver"""
59+
"""
60+
SSD1305 driver
61+
62+
:param int width: The width of the display
63+
:param int height: The height of the display
64+
:param int rotation: The rotation of the display in degrees. Default is 0.
65+
One of (0, 90, 180, 270)
66+
"""
6067

6168
def __init__(self, bus, **kwargs):
6269
colstart = 0
@@ -80,7 +87,6 @@ def __init__(self, bus, **kwargs):
8087
set_column_command=0x21,
8188
set_row_command=0x22,
8289
data_as_commands=True,
83-
set_vertical_scroll=0xD3,
8490
brightness_command=0x81,
8591
single_byte_bounds=True,
8692
colstart=colstart,

0 commit comments

Comments
 (0)