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 Scott Lahteine
parent 3db2fecaa4
commit 39001bd8d2
9 changed files with 82 additions and 3 deletions

View File

@ -2857,6 +2857,14 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
#endif
#endif
#if LCD_BACKLIGHT_TIMEOUT
#if !HAS_ENCODER_ACTION
#error "LCD_BACKLIGHT_TIMEOUT requires an LCD with encoder or keypad."
#elif !PIN_EXISTS(LCD_BACKLIGHT)
#error "LCD_BACKLIGHT_TIMEOUT requires LCD_BACKLIGHT_PIN."
#endif
#endif
/**
* Some boards forbid the use of -1 Native USB
*/