# ASAP! My esp32 and TFT don't work

**URL:** <https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703>\
**Category:** General Guidance\
**Created:** [January 22, 2025, 4:39pm UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703 "2025-01-22T16:39:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![benasvarnelis](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/benasvarnelis/32/1179399_2.png) [@benasvarnelis](https://forum.arduino.cc/u/benasvarnelis)\
**Post date:** [January 22, 2025, 4:39pm UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/1 "2025-01-22T16:39:15Z")

</div>

I have just got my esp32, my 2.8 inch tft with touch screen and I wanted to make an esp 32 marauder. So I went on numerous apps and websites researching and after 2 days I finally got the website. I have an esp32 devkit v4 and a 2.8 inch TFT with touch and when I flashed the esp32 4 TIMES I connected it to the TFT ,but all it shows is a white screen as soon as I turn it on and nothing else. I wanted to check if I placed the pins correctly but my Arduino ide with board preferences set and port set says that it cant recognize the board. At this point I don't know what to do, because my Mac version is 10.11 other apps on my phone dont work and I don't have another computer. I have tried every pin combo but my esp32 either doesn't have the pins or lights up white. I don't know if I flashed it wrong or something but I know that everything works but every other chat I have been to I don't understand anything. My trip is in 2 days and I probably won't have time to finish it but if someone can help me out I will be very thankful.

---

<div class="post-metadata">

**Author:** ![build\_1971](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/build_1971/32/689930_2.png) [@build\_1971](https://forum.arduino.cc/u/build_1971)\
**Post date:** [January 22, 2025, 4:56pm UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/2 "2025-01-22T16:56:34Z")

</div>

Did the ide report a successful upload of your code?  
If your board is not recognized: probably not...  
Do you happen to have a M1? (Without usb-B connection?)  
You cannot expect the board to do anything if the code is not uploaded. So that needs fixing first...

---

<div class="post-metadata">

**Author:** ![horace](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/horace/32/1014299_2.png) [@horace](https://forum.arduino.cc/u/horace)\
**Post date:** [January 22, 2025, 5:12pm UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/3 "2025-01-22T17:12:53Z")

</div>

which specific ESP32? give a link  
which specific 2.8 inch TFT display? give a link  
how have you connected the TFT to the ESP32?  
which display library are you using?

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [January 22, 2025, 5:36pm UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/4 "2025-01-22T17:36:50Z")

</div>

> [@benasvarnelis](#):
>
> that it cant recognize the board.

Where does it say that?

---

<div class="post-metadata">

**Author:** ![benasvarnelis](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/benasvarnelis/32/1179399_2.png) [@benasvarnelis](https://forum.arduino.cc/u/benasvarnelis)\
**Post date:** [January 22, 2025, 5:51pm UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/5 "2025-01-22T17:51:39Z")

</div>

On the bottom of the Arduino ide

---

<div class="post-metadata">

**Author:** ![benasvarnelis](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/benasvarnelis/32/1179399_2.png) [@benasvarnelis](https://forum.arduino.cc/u/benasvarnelis)\
**Post date:** [January 22, 2025, 5:53pm UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/6 "2025-01-22T17:53:54Z")

</div>

Esp32 devkit v4  
2.8 inch lli9341

---

<div class="post-metadata">

**Author:** ![benasvarnelis](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/benasvarnelis/32/1179399_2.png) [@benasvarnelis](https://forum.arduino.cc/u/benasvarnelis)\
**Post date:** [January 22, 2025, 5:55pm UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/7 "2025-01-22T17:55:43Z")

</div>

I did try out some YouTube tutorials with code but when I try the code it says error esp34 dev board not recognized maybe its because I'm using an older version

---

<div class="post-metadata">

**Author:** ![horace](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/horace/32/1014299_2.png) [@horace](https://forum.arduino.cc/u/horace)\
**Post date:** [January 22, 2025, 6:03pm UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/8 "2025-01-22T18:03:03Z")

</div>

> [@benasvarnelis](#):
>
> 2.8 inch lli9341

is it anything like [HiLetgo 240X320 Resolution 2.8" SPI TFT LCD Display Touch Panel ILI9341](http://www.hiletgo.com/ProductDetail/2157216.html)

with the IL19341 display I used ESP32 pins

```arduino
#define TFT_CS 15 
#define TFT_MOSI MOSI 
#define TFT_SCLK SCK 
#define TFT_MISO MISO 

#define TFT_DC 2
#define TFT_RST 4

```

with the [TFT\_eSPI library](https://github.com/Bodmer/TFT_eSPI)

---

<div class="post-metadata">

**Author:** ![benasvarnelis](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/benasvarnelis/32/1179399_2.png) [@benasvarnelis](https://forum.arduino.cc/u/benasvarnelis)\
**Post date:** [January 22, 2025, 6:03pm UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/9 "2025-01-22T18:03:44Z")

</div>

The wiring is:  
Vcc\>3v3  
Gnd\>gnd  
Cs\>5 gpio  
Reset\>4 gpio  
DC\>2 gpio  
SDI\>23 gpio  
Sck\>18 gpio  
Led\>V5  
Sdo\>13 gpio  
T\_clk\>13 gpio  
T\_cs\>17 gpio  
T\_din\>32 gpio  
T\_do\>19 gpio  
T\_irq\>34 gpio

I have rewired it but it's still the same, at one moment I took out something it started blinking but currently its just white with this wiring

---

<div class="post-metadata">

**Author:** ![benasvarnelis](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/benasvarnelis/32/1179399_2.png) [@benasvarnelis](https://forum.arduino.cc/u/benasvarnelis)\
**Post date:** [January 22, 2025, 6:06pm UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/10 "2025-01-22T18:06:06Z")

</div>

Since my Arduino ide is not working tomorrow I'm gonna go to my mom's job computer and try install the newest Arduino ide, then flash it again and then try the define features but I don't know all the code should I just define each connected pin, what should pop out in the output?

---

<div class="post-metadata">

**Author:** ![6v6gt](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/6v6gt/32/225488_2.png) [@6v6gt](https://forum.arduino.cc/u/6v6gt)\
**Post date:** [January 22, 2025, 8:25pm UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/11 "2025-01-22T20:25:23Z")

</div>

This has some similarities to another current thread: [My touchscreen does not work with ESP32 DEVKIT V2 and ili9341](https://forum.arduino.cc/t/my-touchscreen-does-not-work-with-esp32-devkit-v2-and-ili9341/1345120)

Usually the touch screen controller and the tft display controller are on the same SPI bus. That means, for example, that pins T\_clk (touch screen clock) and Sck (TFT display clock) are actually connected to the same pin on the ESP32.

On an SPI bus, pins SCK, MOSI and MISO are shared. Note these pins often have slightly different names depending on the peripheral. Only the chip select pin (usually CS or something similar) is unique and this is used to determine which peripheral device, in this case the touch screen controller or the TFT screen controller, is currently active on the bus.

---

<div class="post-metadata">

**Author:** ![build\_1971](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/build_1971/32/689930_2.png) [@build\_1971](https://forum.arduino.cc/u/build_1971)\
**Post date:** [January 22, 2025, 8:27pm UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/12 "2025-01-22T20:27:47Z")

</div>

Maybe it is a good idea to first focus on a successfull upload of the code...

---

<div class="post-metadata">

**Author:** ![lastchancename](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/lastchancename/32/215426_2.png) [@lastchancename](https://forum.arduino.cc/u/lastchancename)\
**Post date:** [January 22, 2025, 9:19pm UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/13 "2025-01-22T21:19:44Z")

</div>

AND posting your SCHEMATIC.

---

<div class="post-metadata">

**Author:** ![benasvarnelis](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/benasvarnelis/32/1179399_2.png) [@benasvarnelis](https://forum.arduino.cc/u/benasvarnelis)\
**Post date:** [January 23, 2025, 5:44am UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/14 "2025-01-23T05:44:04Z")

</div>

Yes, thank for reaching out but I am not sure what code to write I have reached out to some more people and some have responded, but I still don't understand #define functions and what to write when I go to my mom's computer.

---

<div class="post-metadata">

**Author:** ![benasvarnelis](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/benasvarnelis/32/1179399_2.png) [@benasvarnelis](https://forum.arduino.cc/u/benasvarnelis)\
**Post date:** [January 23, 2025, 5:47am UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/15 "2025-01-23T05:47:12Z")

</div>

Thank you, but I still don't know which wires have to be the same and how to connect them together because I connected them by Arduino wires and no pcb or breadboard.

---

<div class="post-metadata">

**Author:** ![horace](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/horace/32/1014299_2.png) [@horace](https://forum.arduino.cc/u/horace)\
**Post date:** [January 23, 2025, 8:35am UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/16 "2025-01-23T08:35:53Z")

</div>

> [@benasvarnelis](#):
>
> I still don't know which wires have to be the same and how to connect them

have a look at sample code for a 2.8\_ SPI TFT LCD Display Touch Panel ILI9341 in [my-touchscreen-does-not-work-with-esp32-devkit-v2](https://forum.arduino.cc/t/my-touchscreen-does-not-work-with-esp32-devkit-v2-and-ili9341/1345120/13)

the touch and display interfaces use common MOSI, MISO and SCK pins but separate CS pins

---

<div class="post-metadata">

**Author:** ![6v6gt](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/6v6gt/32/225488_2.png) [@6v6gt](https://forum.arduino.cc/u/6v6gt)\
**Post date:** [January 23, 2025, 10:02am UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/17 "2025-01-23T10:02:33Z")

</div>

> [@benasvarnelis](#):
>
> I still don't know which wires have to be the same and how to connect them together because I connected them by Arduino wires and no pcb or breadboard.

You will have to solve at least that one problem if you are making connections using jumper wires directly between the MCU and the screen without a bread board. That is three pairs of screen pins connect to a single pin on the MCU (for the SPI bus).

Shared SPI bus pins:  
SDI and T\_din are the same MCU pin (MOSI)  
Sdo and T\_do are the same MCU pin (MISO)  
Sck and T\_clk are the same MCU pin (SCK clock)

---

<div class="post-metadata">

**Author:** ![build\_1971](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/build_1971/32/689930_2.png) [@build\_1971](https://forum.arduino.cc/u/build_1971)\
**Post date:** [January 23, 2025, 9:40pm UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/18 "2025-01-23T21:40:22Z")

</div>

You should write nothing.  
Install the ide.  
Select the board.  
Connect the board.  
From examples choose the most simple one (the one that makes the built in led blink, or some 'hello world' example).  
Compile and upload to your board.  
Let us know if you have success... if not, report what happens instead...  
After that it might make sense to look at your tft issues...

---

<div class="post-metadata">

**Author:** ![benasvarnelis](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/benasvarnelis/32/1179399_2.png) [@benasvarnelis](https://forum.arduino.cc/u/benasvarnelis)\
**Post date:** [January 28, 2025, 1:10pm UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/19 "2025-01-28T13:10:41Z")

</div>

for now i give up until i figure out the situation with the pc but as soon as i get it i will try to get it working once again

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [July 27, 2025, 1:10pm UTC](https://forum.arduino.cc/t/asap-my-esp32-and-tft-dont-work/1345703/20 "2025-07-27T13:10:48Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
