🚸 TFT backlight PWM / brightness (#22841)

This commit is contained in:
Tanguy Pruvot
2021-09-27 21:01:47 +02:00
committed by Scott Lahteine
parent 34c9f64925
commit 064f91e9b0
7 changed files with 40 additions and 3 deletions

View File

@@ -122,7 +122,9 @@ uint8_t TouchButtons::read_buttons() {
}
void TouchButtons::wakeUp() {
if (isSleeping()) {
#if PIN_EXISTS(TFT_BACKLIGHT)
#if HAS_LCD_BRIGHTNESS
ui._set_brightness();
#elif PIN_EXISTS(TFT_BACKLIGHT)
WRITE(TFT_BACKLIGHT_PIN, HIGH);
#endif
}