Hi guys, trying to turn on my I2C LCD, following a keypad tutorial from tech-zen.
http://tech-zen.tv/episodes/shows/make-it-work/episodes/keypad-input-to-an-arduino-episode-11
Here is the code:
void setup()
{
lcd.init(); // initialize the lcd
//lcd.init();
// Print a message to the LCD.
lcd.backlight();
displayCodeEntryScreen();
//setup and turn off both LEDs
pinMode(redLED, OUTPUT);
pinMode(greenLED, OUTPUT);
digitalWrite(redLED, LOW);
digitalWrite(greenLED, LOW);
}
Here is the Error message:
In file included from C:\Users\q\Documents\Arduino\Keypad_Basic_1\Keypad_Basic_1.ino:2:0:
C:\Users\q\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h: In function 'void setup()':
C:\Users\q\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h:154:9: error: 'int LiquidCrystal_I2C::init()' is private
- int init();*
- ^*
Keypad_Basic_1:33: error: within this context - lcd.init(); // initialize the lcd*
- ^*
exit status 1
within this context
Is there a way around this? lcd.begin is not working..