mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2024-09-21 10:27:11 +00:00
Made CONFIG_TFT_RST optional (#2668)
This commit is contained in:
parent
5eca04671e
commit
8d4ee4c78e
20
TFT_config.h
20
TFT_config.h
@ -23,6 +23,14 @@
|
|||||||
|
|
||||||
#include "sdkconfig.h"
|
#include "sdkconfig.h"
|
||||||
|
|
||||||
|
/***************************************************************************************
|
||||||
|
** Others
|
||||||
|
***************************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_DISABLE_WARNINGS
|
||||||
|
#define DISABLE_ALL_LIBRARY_WARNINGS
|
||||||
|
#endif
|
||||||
|
|
||||||
/***************************************************************************************
|
/***************************************************************************************
|
||||||
** TFT_eSPI Configuration defines
|
** TFT_eSPI Configuration defines
|
||||||
***************************************************************************************/
|
***************************************************************************************/
|
||||||
@ -137,7 +145,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_TFT_RST == -1
|
#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
|
#else
|
||||||
#define TFT_RST CONFIG_TFT_RST
|
#define TFT_RST CONFIG_TFT_RST
|
||||||
#endif
|
#endif
|
||||||
@ -307,12 +317,4 @@
|
|||||||
#define SPI_TOUCH_FREQUENCY CONFIG_SPI_TOUCH_FREQUENCY
|
#define SPI_TOUCH_FREQUENCY CONFIG_SPI_TOUCH_FREQUENCY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/***************************************************************************************
|
|
||||||
** Section 6: Others
|
|
||||||
***************************************************************************************/
|
|
||||||
|
|
||||||
#ifdef CONFIG_DISABLE_WARNINGS
|
|
||||||
#define DISABLE_ALL_LIBRARY_WARNINGS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // TFT_CONFIG_H
|
#endif // TFT_CONFIG_H
|
||||||
|
Loading…
Reference in New Issue
Block a user