Programming for LCD Module 1602, I see this error.
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 ("Blablabla");
}
void loop ()
{
}
ERROR: ??WHY??
sketch_jul28a:5: error: 'line' does not name a type
sketch_jul28a:4: error: 'LiquidCrystal_I2C' does not name a type
sketch_jul28a:6: error: 'line' does not name a type
First, the C preprocessor isn't going to like having a space between the '#' and the keyword include. It should be #include with no spaces. Second, you've also put in spaces between the function name and its opening parentheses, as in lcd (0x27, 16,2). You did this with the other function calls, too (e.g., setup () and loop ()). Get rid of the spaces. You also added an extra space between the method name and its opening parentheses, as in all the lcd calls (e.g., lcd.init ()). Get rid of the extra space in front of the opening parentheses. Finally, you have an extra space between the comment characters: //. get rid of them.