ESP32 Devkit C What pins to connect an ST7735 TFT display
Posted: Sat Jun 26, 2021 5:06 pm
by gavino200@gmail.com
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.
Re: ESP32 Devkit C What pins to connect an ST7735 TFT display
Posted: Wed Jun 30, 2021 4:05 am
by ESP_LJH
Hello, any unused GPIO ( excluding GPIOs only for inputs ) could be connected to LCD display.
Re: ESP32 Devkit C What pins to connect an ST7735 TFT display
Posted: Wed Jun 30, 2021 2:16 pm
by tjdogger
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!