Merge pull request #7 from Joennuh/master

Making TFT_eSPI settings effective
This commit is contained in:
lewis he 2019-09-20 09:06:46 +08:00 committed by GitHub
commit aec49fbef9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,12 +138,10 @@ void setup()
tft.setTextDatum(MC_DATUM); tft.setTextDatum(MC_DATUM);
tft.setTextSize(1); tft.setTextSize(1);
//! The backlight has been initialized in the TFT_eSPI library if (TFT_BL > 0) { // TFT_BL has been set in the TFT_eSPI library in the User Setup file TTGO_T_Display.h
// if (TFT_BL > 0) { pinMode(TFT_BL, OUTPUT); // Set backlight pin to output mode
// pinMode(TFT_BL, OUTPUT); digitalWrite(TFT_BL, TFT_BACKLIGHT_ON); // Turn backlight on. TFT_BACKLIGHT_ON has been set in the TFT_eSPI library in the User Setup file TTGO_T_Display.h
// digitalWrite(TFT_BL, HIGH); }
// }
tft.setSwapBytes(true); tft.setSwapBytes(true);
tft.pushImage(0, 0, 240, 135, ttgo); tft.pushImage(0, 0, 240, 135, ttgo);