Browse Source

Added import of Wire Library to make I2C LCD support compilable

Bob Clough 12 years ago
parent
commit
b6209c86dd
2 changed files with 7 additions and 1 deletions
  1. 6
    1
      Marlin/Marlin.pde
  2. 1
    0
      Marlin/ultralcd_implementation_hitachi_HD44780.h

+ 6
- 1
Marlin/Marlin.pde View File

34
 #include "pins.h"
34
 #include "pins.h"
35
 
35
 
36
 #ifdef ULTRA_LCD
36
 #ifdef ULTRA_LCD
37
-#include <LiquidCrystal.h>
37
+  #ifdef LCD_I2C
38
+    #include <Wire.h>
39
+    #include <LiquidCrystal_I2C.h>
40
+  #else
41
+    #include <LiquidCrystal.h>
42
+  #endif
38
 #endif
43
 #endif
39
 
44
 
40
 #if DIGIPOTSS_PIN > -1
45
 #if DIGIPOTSS_PIN > -1

+ 1
- 0
Marlin/ultralcd_implementation_hitachi_HD44780.h View File

11
   #define LCD_CLASS LiquidCrystalRus
11
   #define LCD_CLASS LiquidCrystalRus
12
 #else
12
 #else
13
   #ifdef LCD_I2C
13
   #ifdef LCD_I2C
14
+    #include <Wire.h>
14
     #include <LiquidCrystal_I2C.h>
15
     #include <LiquidCrystal_I2C.h>
15
     #define LCD_CLASS LiquidCrystal_I2C
16
     #define LCD_CLASS LiquidCrystal_I2C
16
   #else
17
   #else

Loading…
Cancel
Save