Base HAS_LCD_CONTRAST on display type

This commit is contained in:
Scott Lahteine 2019-08-14 00:00:46 -05:00
parent 3f678b0be5
commit dfcd437486

View file

@ -384,7 +384,14 @@
/**
* Default LCD contrast for Graphical LCD displays
*/
#define HAS_LCD_CONTRAST (HAS_GRAPHICAL_LCD && defined(DEFAULT_LCD_CONTRAST))
#define HAS_LCD_CONTRAST ( \
ENABLED(MAKRPANEL) \
|| ENABLED(CARTESIO_UI) \
|| ENABLED(VIKI2) \
|| ENABLED(AZSMZ_12864) \
|| ENABLED(miniVIKI) \
|| ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) \
)
#if HAS_LCD_CONTRAST
#ifndef LCD_CONTRAST_MIN
#define LCD_CONTRAST_MIN 0