mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
fix t114 display flicker
This commit is contained in:
parent
1295c4633b
commit
d680852c99
1 changed files with 15 additions and 1 deletions
|
|
@ -32,7 +32,21 @@ bool ST7789Display::begin() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ST7789Display::turnOn() {
|
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() {
|
void ST7789Display::turnOff() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue