Make LCD_CONTRAST_MAX >= _LCD_CONTRAST_INIT (#15046)

2.0.x
Tim Moore 5 years ago committed by Scott Lahteine
parent 9e9e578234
commit 1461ee4d36

@ -292,8 +292,10 @@
#ifndef LCD_CONTRAST_MAX
#ifdef _LCD_CONTRAST_MAX
#define LCD_CONTRAST_MAX _LCD_CONTRAST_MAX
#elif _LCD_CONTRAST_INIT > 63
#define LCD_CONTRAST_MAX _LCD_CONTRAST_INIT
#else
#define LCD_CONTRAST_MAX 63
#define LCD_CONTRAST_MAX 63 // ST7567 6-bits contrast
#endif
#endif
#ifndef DEFAULT_LCD_CONTRAST

Loading…
Cancel
Save