Fixed small error in lcd define statements.

This commit is contained in:
kiyoshigawa 2013-06-08 09:00:34 -06:00
parent 6a81291c57
commit 2ca6c5fbd7

View file

@ -303,14 +303,9 @@ static void lcd_implementation_init()
B00000, B00000,
B00000 B00000
}; //thanks Sonny Mounicou }; //thanks Sonny Mounicou
#ifdef LCD_I2C_TYPE_PCA8574 #if defined(LCDI2C_TYPE_PCF8575)
lcd.init(); lcd.begin(LCD_WIDTH, LCD_HEIGHT);
lcd.backlight(); #ifdef LCD_I2C_PIN_BL
#else
if defined(LCDI2C_TYPE_PCF8575)
lcd.begin(LCD_WIDTH, LCD_HEIGHT);
#endif
#ifdef LCD_I2C_PIN_BL
lcd.setBacklightPin(LCD_I2C_PIN_BL,POSITIVE); lcd.setBacklightPin(LCD_I2C_PIN_BL,POSITIVE);
lcd.setBacklight(HIGH); lcd.setBacklight(HIGH);
#endif #endif
@ -323,6 +318,10 @@ static void lcd_implementation_init()
#elif defined(LCD_I2C_TYPE_MCP23008) #elif defined(LCD_I2C_TYPE_MCP23008)
lcd.setMCPType(LTI_TYPE_MCP23008); lcd.setMCPType(LTI_TYPE_MCP23008);
lcd.begin(LCD_WIDTH, LCD_HEIGHT); lcd.begin(LCD_WIDTH, LCD_HEIGHT);
#elif defined(LCD_I2C_TYPE_PCA8574)
lcd.init();
lcd.backlight();
#else #else
lcd.begin(LCD_WIDTH, LCD_HEIGHT); lcd.begin(LCD_WIDTH, LCD_HEIGHT);