Hi,
I cannot get my display to work so, I appreciate some guidance.
My Micropython code works which tells me the display is healthy. The pinout used in the code is:
IO Pins
0 Digital Boot Button
1 Digital Connector P1 & USB Chip - TX
2 Digital Display - TFT_RS / TFT_DC
3 Digital Connector P1 & USB Chip - RX
4 Digital RGB LED - Red
5 Digital SD Card - TF_CS [VSPI]
6 Digital Not Connected
7 Digital Not Connected
8 Digital Not Connected
9 Digital Not Connected
10 Digital Not Connected
11 Digital Not Connected
12 Digital Display - TFT_SDO / TFT_MISO [HSPI]
13 Digital Display - TFT_SDI / TFT_MOSI [HSPI]
14 Digital Display - TFT_SCK [HSPI]
15 Digital Display - TFT_CS [HSPI]
16 Digital RGB LED - Green
17 Digital RGB LED - Blue
18 Digital SD Card - SCK [VSPI]
19 Digital SD Card - MISO [VSPI]
21 Digital Touch CST820, Connector P3 & CN1 - CTP_INT / I2C SDA
22 Digital Connector P3 & CN1 - I2C SCL
23 Digital SD Card - MOSI [VSPI]
25 Digital Touch CST820 - CTP_RST
26 Analog Speaker - !!!Speaker ONLY! Connected to Amp!!!
27 Digital Display - TFT_BL (BackLight)
32 Digital Touch CST820 - CTP_SCL
33 Digital Touch CST820 - CTP_SDA
34 Analog LDR Light Sensor - !!!Input ONLY!!!
35 Digital P3 Connector - !!!Input ONLY w/ NO pull-ups!!!
36 Digital Not Connected
39 Digital Not Connected
and the equivalent used in "User_setup.h" is:
#define ILI9341_2_DRIVER
#define TFT_WIDTH 240
#define TFT_HEIGHT 320
#define TFT_BL 27 // LED back-light control pin
#define TFT_BACKLIGHT_ON HIGH // Level to turn ON back-light (HIGH or LOW)
#define TFT_MISO 12
#define TFT_MOSI 13
#define TFT_SCLK 14
#define TFT_CS 15 // Chip select control pin
#define TFT_DC 2 // Data Command control pin
//#define TFT_RST 4 // Reset pin (could connect to RST pin)
#define TFT_RST -1 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST
With that I'm not able to get a TFT_eSPI basic example to run. I get no errors and the display does turn on (WHITE) but, beside that, nothing happens.
I'm sure the problem is getting the right pinout in the user setup file.
TIA