I just got an ST7789 240x240 display and i can't get it to work with my PI.
i'm using this library: https://github.com/DjamesSuhanko/Python_ST7789
i installed all the python dependency's
When i try to run the example it gives me this error:
Traceback (most recent call last): File "clock_EN.py", line 39, in mode=SPI_MODE, rst=RST, dc=DC, led=LED) TypeError: init() got an unexpected keyword argument 'spi'
My wiring is as the following:
7789 Display <-> Raspberry Pi (PIN# as BOARD, not BCM)
GND <----------> PIN# 6
VCC <----------> PIN# 16
SCL <----------> PIN# 23
SDA <----------> PIN# 19
RES <----------> PIN# 13
DC <----------> PIN# 22
BLK <----------> PIN# 18
I'm sure the spi is enabled in config.txt on the root
clock_EN.py
and check line 39. What the optionspi
is or where it gets called from. The init function getspi
keyword as parameter and doesn't know what to do with it. EDIT: did you change the source files? It looks good on github