@@ -54,6 +54,15 @@ class RA8875_Device:
54
54
"""
55
55
Base Class for the Display. Contains all the low level stuff. As well
56
56
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)
57
66
"""
58
67
59
68
# pylint: disable-msg=invalid-name,too-many-arguments
@@ -68,16 +77,6 @@ def __init__(
68
77
polarity = 0 ,
69
78
phase = 0 ,
70
79
):
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
- """
81
80
self .spi_device = spi_device .SPIDevice (
82
81
spi , cs , baudrate = baudrate , polarity = polarity , phase = phase
83
82
)
0 commit comments