diff --git a/TFT_eSPI.h b/TFT_eSPI.h index 4948c0a..8e8aa67 100644 --- a/TFT_eSPI.h +++ b/TFT_eSPI.h @@ -27,10 +27,6 @@ ***************************************************************************************/ //Standard support -#ifdef TFT_eSPI_COMPONENT - #include "TFT_config.h" -#endif - #include #include #include @@ -40,6 +36,9 @@ ***************************************************************************************/ // Include header file that defines the fonts loaded, the TFT drivers // available and the pins to be used, etc, etc +#ifdef CONFIG_TFT_eSPI_ESPIDF + #include "TFT_config.h" +#endif #include // Handle FLASH based storage e.g. PROGMEM