Contrast over 63 assume 255 max

This is closer to the prior behavior.
This commit is contained in:
Scott Lahteine 2019-08-25 04:30:02 -05:00
parent 1461ee4d36
commit c7825e6719

View File

@ -293,7 +293,7 @@
#ifdef _LCD_CONTRAST_MAX #ifdef _LCD_CONTRAST_MAX
#define LCD_CONTRAST_MAX _LCD_CONTRAST_MAX #define LCD_CONTRAST_MAX _LCD_CONTRAST_MAX
#elif _LCD_CONTRAST_INIT > 63 #elif _LCD_CONTRAST_INIT > 63
#define LCD_CONTRAST_MAX _LCD_CONTRAST_INIT #define LCD_CONTRAST_MAX 255
#else #else
#define LCD_CONTRAST_MAX 63 // ST7567 6-bits contrast #define LCD_CONTRAST_MAX 63 // ST7567 6-bits contrast
#endif #endif