From 0ee6ae3e063ed4c362b07d1bca55e07ae87790f1 Mon Sep 17 00:00:00 2001 From: "Michael E. Palmer" Date: Wed, 28 Aug 2019 15:49:22 -0700 Subject: [PATCH] the weimos d1 mini has TFT_CS of D0, and TFT_DC of D8. I get a white screen only running for example the TFT_Print_Test. This fix makes the print test (and other examples) work. --- TFT_eSPI.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TFT_eSPI.h b/TFT_eSPI.h index 638f131..bfc9938 100644 --- a/TFT_eSPI.h +++ b/TFT_eSPI.h @@ -128,7 +128,7 @@ #define DC_C // No macro allocated so it generates no code #define DC_D // No macro allocated so it generates no code #else - #if defined (ESP8266) && (TFT_DC == 16) +#if defined (ESP8266) && (TFT_DC == D0) #define DC_C digitalWrite(TFT_DC, LOW) #define DC_D digitalWrite(TFT_DC, HIGH) #elif defined (ESP32) @@ -185,7 +185,7 @@ #define CS_L // No macro allocated so it generates no code #define CS_H // No macro allocated so it generates no code #else - #if defined (ESP8266) && (TFT_CS == 16) +#if defined (ESP8266) && (TFT_CS == D0) #define CS_L digitalWrite(TFT_CS, LOW) #define CS_H digitalWrite(TFT_CS, HIGH) #elif defined (ESP32)