Enable contrast via LCD_CONTRAST_INIT (#15006)

This commit is contained in:
Tanguy Pruvot
2019-08-22 01:56:39 +02:00
committed by Scott Lahteine
parent 012f577bb0
commit e604f76703
7 changed files with 40 additions and 47 deletions

View File

@ -105,9 +105,7 @@
#define BTN_ENC 5
// This display has adjustable contrast
#undef HAS_LCD_CONTRAST
#define HAS_LCD_CONTRAST 1
#define LCD_CONTRAST_MIN 0
#define LCD_CONTRAST_MAX 255
#define DEFAULT_LCD_CONTRAST 255
#define LCD_CONTRAST_INIT LCD_CONTRAST_MAX
#endif

View File

@ -436,7 +436,7 @@
#define DOGLCD_CS 25
// GLCD features
//#define LCD_CONTRAST 190
//#define LCD_CONTRAST_INIT 190
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
@ -463,7 +463,7 @@
#define DOGLCD_CS 66
// GLCD features
//#define LCD_CONTRAST 190
//#define LCD_CONTRAST_INIT 190
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180

View File

@ -137,7 +137,7 @@
#define DOGLCD_CS PB7
#endif
//#define LCD_CONTRAST 190
//#define LCD_CONTRAST_INIT 190
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270

View File

@ -140,7 +140,7 @@
#define RGB_LED_B_PIN PB6
#endif
//#define LCD_CONTRAST 190
//#define LCD_CONTRAST_INIT 190
#if ENABLED(NEWPANEL)
#define BTN_EN1 PC11