Skip to content

Commit df10db2

Browse files
authored
Merge pull request #29 from Neradoc/fix-documentation
Fix documentation
2 parents f9e1c54 + 92e9d5c commit df10db2

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

adafruit_ra8875/ra8875.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ class RA8875_Device:
5454
"""
5555
Base Class for the Display. Contains all the low level stuff. As well
5656
as the touch functions. Valid display sizes are currently 800x480 and 480x272.
57+
58+
:param SPI spi: The spi peripheral to use
59+
:param DigitalInOut cs: The chip-select pin to use (sometimes labeled "SS")
60+
:param DigitalInOut rst: (optional) The reset pin if it exists (default=None)
61+
:param int width: (optional) The width of the display in pixels (default=800)
62+
:param int height: (optional) The height of the display in pixels (default=480)
63+
:param int baudrate: (optional) The spi speed (default=6000000)
64+
:param int polarity: (optional) The spi polarity (default=0)
65+
:param int phase: (optional) The spi phase (default=0)
5766
"""
5867

5968
# pylint: disable-msg=invalid-name,too-many-arguments
@@ -68,16 +77,6 @@ def __init__(
6877
polarity=0,
6978
phase=0,
7079
):
71-
"""
72-
:param SPI spi: The spi peripheral to use
73-
:param DigitalInOut cs: The chip-select pin to use (sometimes labeled "SS")
74-
:param DigitalInOut rst: (optional) The reset pin if it exists (default=None)
75-
:param int width: (optional) The width of the display in pixels (default=800)
76-
:param int height: (optional) The height of the display in pixels (default=480)
77-
:param int baudrate: (optional) The spi speed (default=6000000)
78-
:param int phase: (optional) The spi phase (default=0)
79-
:param int polarity: (optional) The spi polarity (default=0)
80-
"""
8180
self.spi_device = spi_device.SPIDevice(
8281
spi, cs, baudrate=baudrate, polarity=polarity, phase=phase
8382
)

0 commit comments

Comments
 (0)