programming for LCD Module 1602, I see this error.

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

thanks for your answer

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.

Now try and compile it.

I can't figure what this is for

line display

so I'm not surprised the compiler is also having trouble.

...R

Robin2:
I can't figure what this is for

line display

so I'm not surprised the compiler is also having trouble.

...R

line display was part of the comment.

BillHo:
line display was part of the comment.

Not in the code in the original post.

...R

LiquidCrystal_I2C lcd (0x27, 16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display

@BillHo, you are a better man than me to have spotted that.

I hope the OP understands the point.

...R