ESP32 Devkit C What pins to connect an ST7735 TFT display

gavino200@gmail.com
Posts: 1
Joined: Sat Jun 26, 2021 5:00 pm

ESP32 Devkit C What pins to connect an ST7735 TFT display

Postby gavino200@gmail.com » Sat Jun 26, 2021 5:06 pm

My board is an ESP32-DevKitC-32E
I'm using it with the Arduino IDE

I want to connect it to a .96 inch, IPS color, 89x160 LCD display. Module ST7735
The pins on the display are as follows.
GND
VCC
SCL
SDA
RES
DC
CS
BLK

Can anyone tell me what the correct pin on my ESP32 would be to connect to this display? Thanks.

ESP_LJH
Posts: 387
Joined: Tue May 18, 2021 9:21 am

Re: ESP32 Devkit C What pins to connect an ST7735 TFT display

Postby ESP_LJH » Wed Jun 30, 2021 4:05 am

Hello, any unused GPIO ( excluding GPIOs only for inputs ) could be connected to LCD display.

tjdogger
Posts: 1
Joined: Wed Jun 30, 2021 2:07 pm

Re: ESP32 Devkit C What pins to connect an ST7735 TFT display

Postby tjdogger » Wed Jun 30, 2021 2:16 pm

gavino200@gmail.com wrote:
Sat Jun 26, 2021 5:06 pm
My board is an ESP32-DevKitC-32E
I'm using it with the Arduino IDE

I want to connect it to a .96 inch, IPS color, 89x160 LCD display. Module ST7735
The pins on the display are as follows.
GND
VCC
SCL
SDA
RES
DC
CS
BLK

Can anyone tell me what the correct pin on my ESP32 would be to connect to this display? Thanks.
The PIN numbers on the ESP32 are the GPIO numbers. They are shown here (verify for your board)
https://microcontrollerslab.com/wp-cont ... apping.png

So, for example, if you are using Adafruit's Graphicstest example,

#define TFT_CS 19
#define TFT_RST 21
#define TFT_DC 3
#define TFT_MOSI 23
#define TFT_SCLK 18

These pins on the ESP32 are mapped as:
19=>D19 (GPIO19)
21=>D21 (GPIO21)
3=>RX0 (GPIO3)
23=>D23 (GPIO23)
18=>D18 (GPIO18)

See also
https://www.youtube.com/watch?v=D90OSlKYpfA

Hope this helps!

Who is online

Users browsing this forum: No registered users and 65 guests