diff --git a/Processors/TFT_eSPI_ESP32_C3.h b/Processors/TFT_eSPI_ESP32_C3.h index e87160f..7cc2ac6 100644 --- a/Processors/TFT_eSPI_ESP32_C3.h +++ b/Processors/TFT_eSPI_ESP32_C3.h @@ -7,7 +7,9 @@ #ifndef _TFT_eSPI_ESP32H_ #define _TFT_eSPI_ESP32H_ -#warning >>>>------>> ESP32 C3 support is incomplete and non-functional at the moment +#if !defined(DISABLE_ALL_LIBRARY_WARNINGS) + #warning >>>>------>> DMA is not supported on the ESP32 C3 (possible future update) +#endif // Processor ID reported by getSetup() #define PROCESSOR_ID 0x32 diff --git a/Processors/TFT_eSPI_ESP32_S3.h b/Processors/TFT_eSPI_ESP32_S3.h index 29b99fb..4ec4e20 100644 --- a/Processors/TFT_eSPI_ESP32_S3.h +++ b/Processors/TFT_eSPI_ESP32_S3.h @@ -7,7 +7,9 @@ #ifndef _TFT_eSPI_ESP32H_ #define _TFT_eSPI_ESP32H_ -#warning >>>>------>> DMA is not supported on the ESP32 S3 (possible future update) +#if !defined(DISABLE_ALL_LIBRARY_WARNINGS) + #warning >>>>------>> DMA is not supported on the ESP32 S3 (possible future update) +#endif // Processor ID reported by getSetup() #define PROCESSOR_ID 0x32 diff --git a/TFT_eSPI.h b/TFT_eSPI.h index 26c86fe..a83e20d 100644 --- a/TFT_eSPI.h +++ b/TFT_eSPI.h @@ -872,12 +872,16 @@ class TFT_eSPI : public Print { friend class TFT_eSprite; // Sprite class has ac // Load the Touch extension #ifdef TOUCH_CS #if defined (TFT_PARALLEL_8_BIT) || defined (RP2040_PIO_INTERFACE) - #error >>>>------>> Touch functions not supported in 8/16 bit parallel mode or with RP2040 PIO. + #if !defined(DISABLE_ALL_LIBRARY_WARNINGS) + #error >>>>------>> Touch functions not supported in 8/16 bit parallel mode or with RP2040 PIO. + #endif #else #include "Extensions/Touch.h" // Loaded if TOUCH_CS is defined by user #endif #else - #warning >>>>------>> TOUCH_CS pin not defined, TFT_eSPI touch functions will not be available! + #if !defined(DISABLE_ALL_LIBRARY_WARNINGS) + #warning >>>>------>> TOUCH_CS pin not defined, TFT_eSPI touch functions will not be available! + #endif #endif // Load the Anti-aliased font extension diff --git a/User_Setup.h b/User_Setup.h index 16ea89e..60acb1a 100644 --- a/User_Setup.h +++ b/User_Setup.h @@ -11,6 +11,9 @@ // User defined information reported by "Read_User_Setup" test & diagnostics example #define USER_SETUP_INFO "User_Setup" +// Define to disable all #warnings in library (can be put in User_Setup_Select.h) +//#define DISABLE_ALL_LIBRARY_WARNINGS + // ################################################################################## // // Section 1. Call up the right driver file and any options for it diff --git a/User_Setups/SetupX_Template.h b/User_Setups/SetupX_Template.h index 5d369f3..c2c42c5 100644 --- a/User_Setups/SetupX_Template.h +++ b/User_Setups/SetupX_Template.h @@ -10,6 +10,9 @@ #define USER_SETUP_ID 0xFFFFFFFF +// Define to disable all #warnings in library (can be put in User_Setup_Select.h) +//#define DISABLE_ALL_LIBRARY_WARNINGS + // ################################################################################## // // Section 1. Call up the right driver file and any options for it