summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Tworek <tworaz@tworaz.net>2021-01-20 21:45:10 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2021-02-20 08:46:59 (GMT)
commit0d76b1b186d879e2bcf936f39d133d05c1a6a656 (patch)
treec305e40a1013e74ecfaa32c20cb95ae9e9ee0bac
parent268f8c06e9058338fe7a56051757efb3ddc19e33 (diff)
st7789: Fix incorrect variable name in ST7789_SPIs. __init__ docstring.
The data signal pin name is dc, not cs. Signed-off-by: Piotr Tworek <tworaz@tworaz.net>
-rw-r--r--wasp/drivers/st7789.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wasp/drivers/st7789.py b/wasp/drivers/st7789.py
index 46404f9..837e8eb 100644
--- a/wasp/drivers/st7789.py
+++ b/wasp/drivers/st7789.py
@@ -202,7 +202,7 @@ class ST7789_SPI(ST7789):
:param int height: Height of the display
:param machine.SPI spi: SPI controller
:param machine.Pin cs: Pin (or signal) to use as the chip select
- :param machine.Pin cs: Pin (or signal) to use to switch between data
+ :param machine.Pin dc: Pin (or signal) to use to switch between data
and command mode.
:param machine.Pin res: Pin (or signal) to, optionally, use to reset
the display.