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????
Hi.
Make sure you install the libraries as mentioned in the tutorial, including setting up the configuration file.
Regards,
Sara
Hi Sara, yes, the required libraries are installed as instructed. It seems to be a conflict between the Hardware libraries and the regular libraries???
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
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
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
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”!