TFT_eSPI icon indicating copy to clipboard operation
TFT_eSPI copied to clipboard

Misleading directions in user_setup_select.h to use of USER_SETUP_LOADED

Open WombatHollow opened this issue 5 months ago • 2 comments

In file user_setup_select.h there is this statement with comments

#ifndef USER_SETUP_LOADED //  Lets PlatformIO users define settings in
                          //  platformio.ini, see notes in "Tools" folder.

The comments suggest there is an alternate means to define user_setup in the platformio.ini file which would be great as it removes the need to edit this file, and then loose those edits when tft_eSPI gets updates .

But there are no notes in the "Tools" folder nor have I found out how to do this in platformio.ini (Yes I could in Main.ccp add a #include to my specific setup file, and a #define USER_SETUP_LOADED but I thought there is an issue with libraries seeing #defines made in main.ccp)

Development Configuration is

  • platformio running on VSCode and compiling to Arduino framework. All at latest version for 3 Feb 2024.

Target Hardware

  • TTGO T-Display (not that it is relevant to this problem)

WombatHollow avatar Feb 03 '24 08:02 WombatHollow

I suggested the alternate means (which would be great) here https://github.com/Bodmer/TFT_eSPI/discussions/3161 and we happen to use the same display for which I created the example so you could use it by pointing your lib_deps to this fork https://github.com/ESP32Home/TFT_eSPI

wassfila avatar Feb 04 '24 14:02 wassfila

The info has moved to the docs folder: https://github.com/Bodmer/TFT_eSPI/tree/master/docs/PlatformIO

I will update the comments at some point.

Bodmer avatar Feb 05 '24 02:02 Bodmer