|
|
@ -97,7 +97,7 @@ static void lcd_status_screen(); |
|
|
|
static void lcd_control_motion_menu(); |
|
|
|
static void lcd_control_volumetric_menu(); |
|
|
|
|
|
|
|
#if ENABLED(HAS_LCD_CONTRAST) |
|
|
|
#if HAS_LCD_CONTRAST |
|
|
|
static void lcd_set_contrast(); |
|
|
|
#endif |
|
|
|
|
|
|
@ -1352,7 +1352,7 @@ static void lcd_control_menu() { |
|
|
|
MENU_ITEM(submenu, MSG_MOTION, lcd_control_motion_menu); |
|
|
|
MENU_ITEM(submenu, MSG_VOLUMETRIC, lcd_control_volumetric_menu); |
|
|
|
|
|
|
|
#if ENABLED(HAS_LCD_CONTRAST) |
|
|
|
#if HAS_LCD_CONTRAST |
|
|
|
//MENU_ITEM_EDIT(int3, MSG_CONTRAST, &lcd_contrast, 0, 63);
|
|
|
|
MENU_ITEM(submenu, MSG_CONTRAST, lcd_set_contrast); |
|
|
|
#endif |
|
|
@ -1712,7 +1712,7 @@ static void lcd_control_volumetric_menu() { |
|
|
|
* "Control" > "Contrast" submenu |
|
|
|
* |
|
|
|
*/ |
|
|
|
#if ENABLED(HAS_LCD_CONTRAST) |
|
|
|
#if HAS_LCD_CONTRAST |
|
|
|
static void lcd_set_contrast() { |
|
|
|
ENCODER_DIRECTION_NORMAL(); |
|
|
|
if (encoderPosition) { |
|
|
@ -2383,7 +2383,7 @@ void lcd_setalertstatuspgm(const char* message) { |
|
|
|
|
|
|
|
void lcd_reset_alert_level() { lcd_status_message_level = 0; } |
|
|
|
|
|
|
|
#if ENABLED(HAS_LCD_CONTRAST) |
|
|
|
#if HAS_LCD_CONTRAST |
|
|
|
void lcd_setcontrast(uint8_t value) { |
|
|
|
lcd_contrast = value & 0x3F; |
|
|
|
u8g.setContrast(lcd_contrast); |
|
|
|