More functional seperation
Moved SDCARDDETECTINVERTED and SDSLOW to Conditionals.h. Added U8GLIB_LM6059_AF to define display specific actions. Added reminder to compile in u8glib
This commit is contained in:
@ -1110,23 +1110,24 @@ static void lcd_control_volumetric_menu() {
|
||||
#ifdef HAS_LCD_CONTRAST
|
||||
static void lcd_set_contrast() {
|
||||
if (encoderPosition != 0) {
|
||||
#ifdef ELB_FULL_GRAPHIC_CONTROLLER
|
||||
lcd_contrast += encoderPosition;
|
||||
lcd_contrast &= 0xFF;
|
||||
#else
|
||||
lcd_contrast -= encoderPosition;
|
||||
lcd_contrast &= 0x3F;
|
||||
#endif
|
||||
#ifdef U8GLIB_ST7920
|
||||
lcd_contrast += encoderPosition;
|
||||
lcd_contrast &= 0xFF;
|
||||
#else
|
||||
lcd_contrast -= encoderPosition;
|
||||
lcd_contrast &= 0x3F;
|
||||
#endif
|
||||
encoderPosition = 0;
|
||||
lcdDrawUpdate = 1;
|
||||
u8g.setContrast(lcd_contrast);
|
||||
}
|
||||
if (lcdDrawUpdate)
|
||||
#ifdef ELB_FULL_GRAPHIC_CONTROLLER
|
||||
lcd_implementation_drawedit(PSTR(MSG_CONTRAST), itostr3(lcd_contrast));
|
||||
#else
|
||||
lcd_implementation_drawedit(PSTR(MSG_CONTRAST), itostr2(lcd_contrast));
|
||||
#endif
|
||||
if (lcdDrawUpdate) {
|
||||
#ifdef U8GLIB_ST7920
|
||||
lcd_implementation_drawedit(PSTR(MSG_CONTRAST), itostr3(lcd_contrast));
|
||||
#else
|
||||
lcd_implementation_drawedit(PSTR(MSG_CONTRAST), itostr2(lcd_contrast));
|
||||
#endif
|
||||
}
|
||||
if (LCD_CLICKED) lcd_goto_menu(lcd_control_menu);
|
||||
}
|
||||
#endif // HAS_LCD_CONTRAST
|
||||
|
Reference in New Issue
Block a user