Nano ESP32 with TFT_eSPI Lib TFT shows no reaction

Hello together,

I try to use the Arduino Nano ESP 32 with the Lib TFT_eSPI (latest Version) and the Adafruit TFT 1.8 Zoll with driver ASIC ST 7735S.
After Lib was installed I modified the User_Setup.h and User_Setup_Select.h.
My settings are:
#include <User_Setups/Setup43_ST7735.h> --> in file User_Setup_Select.h
Next in User_Setup.h

#define ST7735_DRIVER
#define TFT_WIDTH  128
#define TFT_HEIGHT 160
#define ST7735_BLACKTAB
#define TFT_INVERSION_OFF
#define TFT_MOSI 11 // In some display driver board, it might be written as "SDA" and so on.
#define TFT_SCLK 13
#define TFT_CS   9  // Chip select control pin
#define TFT_DC   8  // Data Command control pin
#define TFT_RST  7  // Reset pin (could connect to Arduino RESET pin)

According this pins settings I have connected the TFT display with the Arduino Board.
Other pins like VCC, Gnd and Led are also connected.
I can see no reaction on the TFT. Still it is lighted on and will not show any details when using an example like Colour_Wheel.ino or else.
Does someone has more success on this topic?
Thanks for helping
Best regards Mascho11

Hello @mascho11, the Nano ESP32 has a different handling of sketches with pin numbers. Please read this document for more information. Make sure to:

  • choose "Tools" > "Pin Numbering" > "By GPIO number" in the IDE
  • use symbols when referring to pin numbers, like this:
#define TFT_MOSI D11
#define TFT_SCLK D13
#define TFT_CS   D9
#define TFT_DC   D8
#define TFT_RST  D7

(obviously double-check if these actually match your connections on the board! :slightly_smiling_face:)

Let me know if this helps!

Hello Iburelli,
Good day. Thanks for your help and support.
I was aware of this topic with Arduino Pin and GPIO. But I thougt both are supported and I need to choose one of both.
But ok I changed: "Tools" > "Pin Numbering" > "By GPIO number"
And sorted the pins new:

#define TFT_MISO 47  // D12
#define TFT_MOSI 38  // D11 In some display driver board, it might be written as "SDA" and so on.
#define TFT_SCLK 48  // D13
#define TFT_CS   18  // D9Chip select control pin
#define TFT_DC   17  // D8 Data Command control pin
#define TFT_RST  10  // D7 Reset pin (could connect to Arduino RESET pin)

This alone helped not. I changed some settings inslide the configuration. At the end it was this setting I have undone:
old: #include <User_Setups/Setup43_ST7735.h>
new: #include <User_Setup.h> Default setup

With this and your pin setting now the Dispay is working and the basic scatches are running as expected.

Thank you and best regards
Mascho11

1 Like