Browse Source

fix t114 display flicker

pull/437/head
JQ 12 months ago
parent
commit
d680852c99
  1. 16
      src/helpers/ui/ST7789Display.cpp

16
src/helpers/ui/ST7789Display.cpp

@ -32,7 +32,21 @@ bool ST7789Display::begin() {
}
void ST7789Display::turnOn() {
ST7789Display::begin();
if (!_isOn) {
// Restore power to the display but keep backlight off
digitalWrite(PIN_TFT_VDD_CTL, LOW);
digitalWrite(PIN_TFT_RST, HIGH);
// Re-initialize the display
display.init();
display.displayOn();
delay(10);
// Now turn on the backlight
digitalWrite(PIN_TFT_LEDA_CTL, LOW);
_isOn = true;
}
}
void ST7789Display::turnOff() {

Loading…
Cancel
Save