Making TFT_eSPI settings effective

pull/7/head
Joennuh 2019-09-11 01:35:08 +02:00
rodzic 8fc49eef1e
commit 10e454a974
1 zmienionych plików z 4 dodań i 6 usunięć

Wyświetl plik

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