Skip to content

Commit

Permalink
Base HAS_LCD_CONTRAST on display type
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Aug 19, 2019
1 parent 3f678b0 commit dfcd437
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Marlin/src/inc/Conditionals_LCD.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dfcd437

Please sign in to comment.