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.

This commit is contained in:
Michael E. Palmer 2019-08-28 15:49:22 -07:00
parent 4f68cf90e8
commit 0ee6ae3e06
1 changed files with 2 additions and 2 deletions

View File

@ -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)