Changed ADAFRUIT_ST7565 to ELB_FULL_GRAPHIC_CONTROLLER

Rename of define to avoid confusion between the controller and the
display which had similar names.
This commit is contained in:
Ed Boston
2015-05-17 15:23:17 -07:00
parent 1999ac415c
commit 047e688e93
5 changed files with 10 additions and 8 deletions

View File

@ -1110,7 +1110,7 @@ static void lcd_control_volumetric_menu() {
#ifdef HAS_LCD_CONTRAST
static void lcd_set_contrast() {
if (encoderPosition != 0) {
#ifdef ADAFRUIT_ST7565
#ifdef ELB_FULL_GRAPHIC_CONTROLLER
lcd_contrast += encoderPosition;
lcd_contrast &= 0xFF;
#else
@ -1122,7 +1122,7 @@ static void lcd_control_volumetric_menu() {
u8g.setContrast(lcd_contrast);
}
if (lcdDrawUpdate)
#ifdef ADAFRUIT_ST7565
#ifdef ELB_FULL_GRAPHIC_CONTROLLER
lcd_implementation_drawedit(PSTR(MSG_CONTRAST), itostr3(lcd_contrast));
#else
lcd_implementation_drawedit(PSTR(MSG_CONTRAST), itostr2(lcd_contrast));