Hey guys, I'm trying to write very simple program for my LCD and it has 2 errors maybe anyone could help to me?
CODE
#include <Wire.h> #include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
lcd.print("Hello, world!");
}
void loop()
{
}
ERRORS:
sketch_jan04a:7: error: 'LiquidCrystal_I2C' does not name a type
sketch_jan04a.ino: In function 'void setup()':
sketch_jan04a:11: error: 'lcd' was not declared in this scope
Ancas:
I done it and now i have other error:
avrdude: stk500_getsync(): not in sync: resp=0x00
That's not promissing. That generally means that the IDE is not able to communicate with your aruduino.
Either, you have the wrong com port selected
OR (under the circumstances more likely)
You are shorting something out.
It could be a combination of both. If you've unplugged and plugged your arduino back in (or shorted it out for just an instant) from the com port, it may now be on a different port to the one you expect.