Quellcode durchsuchen

Added import of Wire Library to make I2C LCD support compilable

Bob Clough vor 11 Jahren
Ursprung
Commit
b6209c86dd
2 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen
  1. 6
    1
      Marlin/Marlin.pde
  2. 1
    0
      Marlin/ultralcd_implementation_hitachi_HD44780.h

+ 6
- 1
Marlin/Marlin.pde Datei anzeigen

@@ -34,7 +34,12 @@
34 34
 #include "pins.h"
35 35
 
36 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 43
 #endif
39 44
 
40 45
 #if DIGIPOTSS_PIN > -1

+ 1
- 0
Marlin/ultralcd_implementation_hitachi_HD44780.h Datei anzeigen

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

Laden…
Abbrechen
Speichern