Multiple SSD1283A display on HW SPI

woodyman
Posts: 3
Joined: Tue Sep 22, 2020 11:22 am

Multiple SSD1283A display on HW SPI

Postby woodyman » Tue Sep 22, 2020 11:36 am

I have an issue with connection 4 LCD displays on SPI interface

my setup:
SSD1283A tft4( /*CS=oranje*/ 5, /*DC=groen*/ 2, /*RST=geel*/ 15, /* LED=*/ 4); //hardware spi,cs,cd,reset,led
SSD1283A tft3(/* CS=oranje*/ 14, /*DC=groen*/ 13, /*RST=geel*/ 12, /*LED=*/ 4); //hardware spi,cs,cd,reset,led
SSD1283A tft2(/* CS=oranje*/ 27, /*DC=groen*/ 26, /*RST=geel*/ 25, /*LED=*/ 4); //hardware spi,cs,cd,reset,led
SSD1283A tft1(/* CS=oranje*/ 22, /*DC=groen*/ 19, /*RST=geel*/ 21, /*LED=*/ 4); //hardware spi,cs,cd,reset,led

My SPI is connected to
18 for SCK
23 for SDA

i have displays 2,3 and 4 working normally

display 1 i cant get it working, i tried to use the available pins for cs/dc/rst
1921/22/32/33/34/35

any idea how i can get it working ?
4-displays-spi-schema.PNG
4-displays-spi-schema.PNG (748.54 KiB) Viewed 7244 times
thanks in advance for the help.

woodyman
Posts: 3
Joined: Tue Sep 22, 2020 11:22 am

Re: Multiple SSD1283A display on HW SPI

Postby woodyman » Sun Sep 27, 2020 10:13 am

anyone who can help me out ?

ESP_Sprite
Posts: 9769
Joined: Thu Nov 26, 2015 4:08 am

Re: Multiple SSD1283A display on HW SPI

Postby ESP_Sprite » Mon Sep 28, 2020 8:18 am

Not 100% sure about the Arduino implementation, but the ESP32 SPI hardware only supports 3 CS lines. You may be running into that limitation. You could try to work around that by using 'standard' GPIOs for CS and setting them manually.

woodyman
Posts: 3
Joined: Tue Sep 22, 2020 11:22 am

Re: Multiple SSD1283A display on HW SPI

Postby woodyman » Tue Sep 29, 2020 6:59 am

Thanks, i guess thats the issue, i tried to select any other pin for the CS, RST and DC and i could not get it working.
Does ESP32 have only 1 HW SPI interface?

ESP_Sprite
Posts: 9769
Joined: Thu Nov 26, 2015 4:08 am

Re: Multiple SSD1283A display on HW SPI

Postby ESP_Sprite » Tue Sep 29, 2020 2:25 pm

Technically it has 4, but only 2 of those are entirely free to use (the others are used for the flash). So if you change your wiring, you *should* be able to control 6 displays without any hacks.

mrburnette
Posts: 22
Joined: Mon Feb 12, 2018 6:50 pm

Re: Multiple SSD1283A display on HW SPI

Postby mrburnette » Wed Sep 30, 2020 3:02 am

I have only gotten two to work fully previously: My example here is for ILI9341, HSPI & VSPI
Maybe you can use your approach to get 2 on each hardware SPI interfaces.

https://www.hackster.io/rayburne/dual-d ... p32-4c75b5

Image


Image

Who is online

Users browsing this forum: No registered users and 49 guests