Update TFT_eSPI lib,Fix TFT-Shield Wrong size definition

This commit is contained in:
lewishe 2023-08-01 12:11:56 +08:00
commit 73bdb79a3e
40 changed files with 2230 additions and 2847 deletions

View file

@ -23,6 +23,14 @@
#include "sdkconfig.h"
/***************************************************************************************
** Others
***************************************************************************************/
#ifdef CONFIG_DISABLE_WARNINGS
#define DISABLE_ALL_LIBRARY_WARNINGS
#endif
/***************************************************************************************
** TFT_eSPI Configuration defines
***************************************************************************************/
@ -137,7 +145,9 @@
#endif
#if CONFIG_TFT_RST == -1
#error "Invalid Reset pin. Check TFT_eSPI configuration"
#if !defined(DISABLE_ALL_LIBRARY_WARNINGS)
#warning "Invalid Reset pin. Check TFT_eSPI configuration"
#endif
#else
#define TFT_RST CONFIG_TFT_RST
#endif
@ -307,12 +317,4 @@
#define SPI_TOUCH_FREQUENCY CONFIG_SPI_TOUCH_FREQUENCY
#endif
/***************************************************************************************
** Section 6: Others
***************************************************************************************/
#ifdef CONFIG_DISABLE_WARNINGS
#define DISABLE_ALL_LIBRARY_WARNINGS
#endif
#endif // TFT_CONFIG_H