ESP-IDF with TFT_eSPI

Hi!

I can’t figure out how to make ILI9341 controller work with ESP32 via SPI. I’ve tried to make a new component but nothing works.

Has somebody tried to do it and it worked?
Thanks

TFT_eSPI is designed for use within the Arduino framework; therefore, there is no official version for ESP-IDF.

If you are required to use ESP-IDF, your only option is to follow the instructions provided in the link below:

If the results are not satisfactory, you have a few alternatives.
Since I have very little information regarding your development environment or target device—and because I lack personal experience with ESP-IDF—I will outline some general options below:

  1. Using ESP-IDF (Option 1)
    Forgo TFT_eSPI and use the official standard feature, esp_lcd.
  2. Using ESP-IDF (Option 2)
    Forgo TFT_eSPI and use LovyanGFX instead.
  3. Using the Arduino Framework (Option 1)
    Use TFT_eSPI.
  4. Using the Arduino Framework (Option 2)
    Use LovyanGFX.

In any of these cases, you should be able to use LVGL, a high-level GUI library.
I have personally implemented a system using the Arduino framework, LovyanGFX, and LVGL on an ESP32-S3, and I am currently in the process of porting this setup to an ESP32-C6-based system.