• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Working on Tutorial – ESP32:: TFT LCD Touchscreen Display – 2.8 inch ILI9341 240×320 (Arduino IDE)

Q&A Forum › Category: Arduino › Working on Tutorial – ESP32:: TFT LCD Touchscreen Display – 2.8 inch ILI9341 240×320 (Arduino IDE)
0 Vote Up Vote Down
Paul D. Wilkie asked 1 year ago

While I was waiting for the display to be delivered, I started looking at the sketch in the tutorial –  ESP32: TFT LCD Touchscreen Display – 2.8 inch ILI9341 240×320 (Arduino IDE). When I attempted to verify the sketch, it returned two issues with other related display configurations?
 
:Multiple libraries were found for “SPIFFS.h“
Used: C:\Users\wipau\Documents\Arduino\libraries\SPIFFS
Not used: C:\Users\wipau\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.3\libraries\SPIFFS
Multiple libraries were found for “SPI.h“
Used: C:\Users\wipau\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.3\libraries\SPI
Not used: C:\Users\wipau\Documents\Arduino\libraries\LGTSPI
exit status 1
Compilation error: exit status 1:
 
https://imgur.com/a/WQoyPqV
 
I am using Arduino IDE Version 2.3.2, I sure how to resolve this issue? Also, I am interested in getting Pastebin.com, not sure????

Question Tags: #LGTSPI #SPIFFS.h #TFTDisplay #ILI9341
7 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
Make sure you install the libraries as mentioned in the tutorial, including setting up the configuration file.
 
Regards,
Sara

0 Vote Up Vote Down
Paul D. Wilkie answered 1 year ago

Hi Sara, yes, the required libraries are installed as instructed. It seems to be a conflict between the Hardware libraries and the regular libraries???

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
I’m sorry for taking so long to get back to you.
For some reason, I didn’t receive a notification of your answer.
 
No, the error is related to a variable not declared. I think you’re not using the right User_Setup.h file, or you did not set it up properly as explained in the tutorial. Our User_setup.h file needs to replace the existing one.
 
Regards,
Sara

0 Vote Up Vote Down
Paul D. Wilkie answered 1 year ago

Hello Sara, Yes, the User_Setuo.h file is correct, copied it from the URL provided in the tutorial and added it to the TFT_eSPI library in the sub folder User_Setups (imgur URL below).
https://imgur.com/a/CwptC6Y
 
The problem I am seeing is this error from the Arduino IDE 1.8.12 compile function as follows:
Multiple libraries were found for “SPI.h”
Used: C:\Users\Paul\Documents\Arduino\libraries\SPI
Not used: C:\Users\Paul\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.15\libraries\SPI
Not used: C:\Users\Paul\Documents\Arduino\libraries\LGTSPI

Using library SPI at version 2.0.0 in folder: C:\Users\Paul\Documents\Arduino\libraries\SPI
Using library TFT_eSPI at version 2.5.43 in folder: C:\Users\Paul\Documents\Arduino\libraries\TFT_eSPI
Using library FS at version 2.0.0 in folder: C:\Users\Paul\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.15\libraries\FS
Using library SPIFFS at version 2.0.0 in folder: C:\Users\Paul\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.15\libraries\SPIFFS
Using library XPT2046_Touchscreen at version 1.4 in folder: C:\Users\Paul\Documents\Arduino\libraries\XPT2046_Touchscreen
exit status 1
Error compiling for board ESP32 Wrover Kit (all versions).
Thanking your for your reply, I trust this gives you the knowledge to resolve this issue.

Paul
 
 
 

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi again.
You’re doing it wrong.

Please double-check the instructions and printscreens in the tutorial: https://i0.wp.com/randomnerdtutorials.com/wp-content/uploads/2024/03/Move-copy-User_Setup-file-to-TFT_eSPI-library-folder-Arduino-IDE-2.png?w=948&quality=100&strip=all&ssl=1

The User_Setup file should be inside the TFT_eSPI library (not inside the User_setups folder).
Regards,
Sara

0 Vote Up Vote Down
Paul D. Wilkie answered 1 year ago

Hello Sara & Rui, thank you for your answer to my issue. It was a simple resolve on my part and works great!
https://imgur.com/1qTsFwo
My next project is the tutorial “ESP32: Guide for MicroSD Card Module using Arduino IDE”!
 
 

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Great.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn LVGL: Build GUIs for ESP32 Projects – Version 1.5 July 7, 2025
  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.