|
@@ -303,14 +303,9 @@ static void lcd_implementation_init()
|
303
|
303
|
B00000,
|
304
|
304
|
B00000
|
305
|
305
|
}; //thanks Sonny Mounicou
|
306
|
|
- #ifdef LCD_I2C_TYPE_PCA8574
|
307
|
|
- lcd.init();
|
308
|
|
- lcd.backlight();
|
309
|
|
- #else
|
310
|
|
- if defined(LCDI2C_TYPE_PCF8575)
|
311
|
|
- lcd.begin(LCD_WIDTH, LCD_HEIGHT);
|
312
|
|
- #endif
|
313
|
|
- #ifdef LCD_I2C_PIN_BL
|
|
306
|
+#if defined(LCDI2C_TYPE_PCF8575)
|
|
307
|
+ lcd.begin(LCD_WIDTH, LCD_HEIGHT);
|
|
308
|
+ #ifdef LCD_I2C_PIN_BL
|
314
|
309
|
lcd.setBacklightPin(LCD_I2C_PIN_BL,POSITIVE);
|
315
|
310
|
lcd.setBacklight(HIGH);
|
316
|
311
|
#endif
|
|
@@ -323,6 +318,10 @@ static void lcd_implementation_init()
|
323
|
318
|
#elif defined(LCD_I2C_TYPE_MCP23008)
|
324
|
319
|
lcd.setMCPType(LTI_TYPE_MCP23008);
|
325
|
320
|
lcd.begin(LCD_WIDTH, LCD_HEIGHT);
|
|
321
|
+
|
|
322
|
+#elif defined(LCD_I2C_TYPE_PCA8574)
|
|
323
|
+ lcd.init();
|
|
324
|
+ lcd.backlight();
|
326
|
325
|
|
327
|
326
|
#else
|
328
|
327
|
lcd.begin(LCD_WIDTH, LCD_HEIGHT);
|