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 @@
#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
......
......@@ -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
......
......@@ -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)
#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
#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
......
......@@ -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
......
......@@ -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
......
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