Bodmer / TFT_eSPI

Arduino and PlatformIO IDE compatible TFT library optimised for the Raspberry Pi Pico (RP2040), STM32, ESP8266 and ESP32 that supports different driver chips
Other
3.54k stars 1.02k forks source link

Misleading directions in user_setup_select.h to use of USER_SETUP_LOADED #3154

Open WombatHollow opened 5 months ago

WombatHollow commented 5 months ago

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

Target Hardware

wassfila commented 5 months ago

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

Bodmer commented 5 months ago

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.