Commit 79b41bc8 authored by Bodmer's avatar Bodmer

Add #define to disable warnings (#1788)

// Define in setup to disable all #warnings in library (can be put in User_Setup_Select.h)
#define DISABLE_ALL_LIBRARY_WARNINGS
parent f0ec6d22
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
#ifndef _TFT_eSPI_ESP32H_ #ifndef _TFT_eSPI_ESP32H_
#define _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() // Processor ID reported by getSetup()
#define PROCESSOR_ID 0x32 #define PROCESSOR_ID 0x32
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
#ifndef _TFT_eSPI_ESP32H_ #ifndef _TFT_eSPI_ESP32H_
#define _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() // Processor ID reported by getSetup()
#define PROCESSOR_ID 0x32 #define PROCESSOR_ID 0x32
......
...@@ -872,12 +872,16 @@ class TFT_eSPI : public Print { friend class TFT_eSprite; // Sprite class has ac ...@@ -872,12 +872,16 @@ class TFT_eSPI : public Print { friend class TFT_eSprite; // Sprite class has ac
// Load the Touch extension // Load the Touch extension
#ifdef TOUCH_CS #ifdef TOUCH_CS
#if defined (TFT_PARALLEL_8_BIT) || defined (RP2040_PIO_INTERFACE) #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 #else
#include "Extensions/Touch.h" // Loaded if TOUCH_CS is defined by user #include "Extensions/Touch.h" // Loaded if TOUCH_CS is defined by user
#endif #endif
#else #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 #endif
// Load the Anti-aliased font extension // Load the Anti-aliased font extension
......
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
// User defined information reported by "Read_User_Setup" test & diagnostics example // User defined information reported by "Read_User_Setup" test & diagnostics example
#define USER_SETUP_INFO "User_Setup" #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 // Section 1. Call up the right driver file and any options for it
......
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
#define USER_SETUP_ID 0xFFFFFFFF #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 // Section 1. Call up the right driver file and any options for it
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment