Browse Source

Added import of Wire Library to make I2C LCD support compilable

pull/1/head
Bob Clough 12 years ago
parent
commit
b6209c86dd
  1. 5
      Marlin/Marlin.pde
  2. 1
      Marlin/ultralcd_implementation_hitachi_HD44780.h

5
Marlin/Marlin.pde

@ -34,8 +34,13 @@
#include "pins.h" #include "pins.h"
#ifdef ULTRA_LCD #ifdef ULTRA_LCD
#ifdef LCD_I2C
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#else
#include <LiquidCrystal.h> #include <LiquidCrystal.h>
#endif #endif
#endif
#if DIGIPOTSS_PIN > -1 #if DIGIPOTSS_PIN > -1
#include <SPI.h> #include <SPI.h>

1
Marlin/ultralcd_implementation_hitachi_HD44780.h

@ -11,6 +11,7 @@
#define LCD_CLASS LiquidCrystalRus #define LCD_CLASS LiquidCrystalRus
#else #else
#ifdef LCD_I2C #ifdef LCD_I2C
#include <Wire.h>
#include <LiquidCrystal_I2C.h> #include <LiquidCrystal_I2C.h>
#define LCD_CLASS LiquidCrystal_I2C #define LCD_CLASS LiquidCrystal_I2C
#else #else

Loading…
Cancel
Save