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
         B00000,
303
         B00000,
304
         B00000
304
         B00000
305
     }; //thanks Sonny Mounicou
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
     lcd.setBacklightPin(LCD_I2C_PIN_BL,POSITIVE);
309
     lcd.setBacklightPin(LCD_I2C_PIN_BL,POSITIVE);
315
     lcd.setBacklight(HIGH);
310
     lcd.setBacklight(HIGH);
316
   #endif
311
   #endif
323
 #elif defined(LCD_I2C_TYPE_MCP23008)
318
 #elif defined(LCD_I2C_TYPE_MCP23008)
324
     lcd.setMCPType(LTI_TYPE_MCP23008);
319
     lcd.setMCPType(LTI_TYPE_MCP23008);
325
     lcd.begin(LCD_WIDTH, LCD_HEIGHT);
320
     lcd.begin(LCD_WIDTH, LCD_HEIGHT);
321
+
322
+#elif defined(LCD_I2C_TYPE_PCA8574)
323
+      lcd.init();
324
+      lcd.backlight();
326
     
325
     
327
 #else
326
 #else
328
     lcd.begin(LCD_WIDTH, LCD_HEIGHT);
327
     lcd.begin(LCD_WIDTH, LCD_HEIGHT);

Loading…
Cancel
Save