Bodmer / TFT_eSPI

Arduino and PlatformIO IDE compatible TFT library optimised for the Raspberry Pi Pico (RP2040), STM32, ESP8266 and ESP32 that supports different driver chips
Other
3.65k stars 1.05k forks source link

TFT_eSPI - ESP32-S2 mini - ST7789 #3225

Closed lidas1234 closed 5 months ago

lidas1234 commented 5 months ago

Hi everyone, I need help, I have an ESP32-S2 mini and an ST7789 display, I wanted to make it work with the TFT_eSPI library, but I can't, can you help me, I use Arduino IDE to program

elgerg commented 5 months ago

You might want to provide some information on your setup and problem...

lidas1234 commented 5 months ago

My configuration is this Wemos esp32 S2 Mini ST7789 display these are the pins that I connected to the display

define TFT_DC 33 // Data/Command

define TFT_RST 38 // ST7789 Reset

define TFT_MOSI 35 // SPI data pin

define TFT_SCLK 36 // SPI sclk pin

the problem is that I don't know how to configure the TFT_eSPI library to work, it gives me an error when loading

elgerg commented 5 months ago

I think it might be worthwhile reading the new issue checklist:

Only raise issues for problems with the library and/or provided examples. Post questions, comments and useful tips etc in the "Discussions" section.

To minimise effort to resolve issues the following should be provided as a minimum:

  1. A description of the problem and the conditions that cause it to occur
  2. IDE (e.g. Arduino or PlatformIO)
  3. TFT_eSPI library version (try the latest, the problem may have been resolved!) from the Manage Libraries... menu
  4. Board package version (e.g. 2.0.3) available from the Boards Manager... menu
  5. Procesor, e.g RP2040, ESP32 S3 etc
  6. TFT driver (e.g. ILI9341), a link to the vendors product web page is useful too.
  7. Interface type (SPI or parallel)

Plus further information as appropriate to the problem:

  1. TFT to processor connections used
  2. A zip file containing your setup file (just drag and drop in message window - do not paste in long files!)
  3. A zip file containing a simple and complete example sketch that demonstrates the problem but needs no special hardware sensors or libraries.
  4. Screen shot pictures showing the problem (just drag and drop in message window)

The idea is to provide sufficient information so I can setup the exact same (or sufficiently similar) scenario to investigate and resolve the issue without having a tedious ping-pong of Q&A.

DO NOT paste code directly into the issue. To correctly format code put three ticks ( ` character on key next to "1" key) at the start and end of short pasted code segments to avoid format/markup anomolies. See here:

Example output:

  Serial.begin(115200);
  tft.init();

It would help without us having to ask a load of questions like "what is the error?"