Browse Source

Fixed small error in lcd define statements.

kiyoshigawa 12 years ago
parent
commit
2ca6c5fbd7
1 changed files with 7 additions and 8 deletions
  1. 7
    8
      Marlin/ultralcd_implementation_hitachi_HD44780.h

+ 7
- 8
Marlin/ultralcd_implementation_hitachi_HD44780.h View File

@@ -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);

Loading…
Cancel
Save