mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-07-30 10:47:32 +02:00
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
This commit is contained in:
@ -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 @@
|
|||||||
#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
|
|||||||
// 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 @@
|
|||||||
// 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 @@
|
|||||||
|
|
||||||
#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
|
||||||
|
Reference in New Issue
Block a user