LCD Backlight Timer (#23768)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
M. FURIC Franck
2022-02-26 23:54:04 +01:00
committed by GitHub
parent 12b038dde5
commit 0e7be8e8c4
9 changed files with 82 additions and 3 deletions

View File

@@ -275,6 +275,14 @@ public:
FORCE_INLINE static void refresh_brightness() { set_brightness(brightness); }
#endif
#if LCD_BACKLIGHT_TIMEOUT
#define LCD_BKL_TIMEOUT_MIN 1
#define LCD_BKL_TIMEOUT_MAX (60*60*18) // 18 hours max within uint16_t
static uint16_t lcd_backlight_timeout;
static millis_t backlight_off_ms;
static void refresh_backlight_timeout();
#endif
#if HAS_DWIN_E3V2_BASIC
static void refresh();
#else