mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-03 12:44:46 +02:00
Fix typo and remove unnecessary error in TFT_config.h
1. RGB configuration was configured incorrectly, and caused re-definition warnings. 2. MISO pin is not always set, so shouldn't trigger a compilation error (see e.g. `Setup25_TTGO_T_DISPLAY.h`).
This commit is contained in:
@@ -78,7 +78,7 @@
|
|||||||
#define TFT_RGB_ORDER TFT_RGB
|
#define TFT_RGB_ORDER TFT_RGB
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_TFT_RGB_ORDER
|
#ifdef CONFIG_TFT_BGR_ORDER
|
||||||
#define TFT_RGB_ORDER TFT_BGR
|
#define TFT_RGB_ORDER TFT_BGR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -223,9 +223,7 @@
|
|||||||
|
|
||||||
// SPI BUS
|
// SPI BUS
|
||||||
#else
|
#else
|
||||||
#if CONFIG_TFT_MISO == -1
|
#if CONFIG_TFT_MISO != -1
|
||||||
#error "Invalid MISO pin. Check TFT_eSPI configuration"
|
|
||||||
#else
|
|
||||||
#define TFT_MISO CONFIG_TFT_MISO
|
#define TFT_MISO CONFIG_TFT_MISO
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user