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:
parent
4f68cf90e8
commit
0ee6ae3e06
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue