Added import of Wire Library to make I2C LCD support compilable

This commit is contained in:
Bob Clough 2013-02-25 15:15:23 +00:00
parent 2b567d1df5
commit b6209c86dd
2 changed files with 7 additions and 1 deletions

View File

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

View File

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