#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup(){
lcd.setCursor( , 0);
lcd.begin;
lcd.print("12345")
}
@boots ,
Your posts in other topics asking to be helped have been deleted. Do not spam other topics with requests for help, stick with your own topic,. You risk a suspension from the forum if you continue to keep adding comments to other topics.
Welcome to the forum
It helps if you post the full error message that you got. As it happens I can guess that it said that a primary expression was expected before the closing brace of the setup() function
A primary expression is a complete code statement
Look closely at this line of code
lcd.print("12345")
Is something missing from it ?
thats not the problem
So, your in-depth explanation of the problem wasn’t enough for us.
the error code i got is expected primary-expression before '.' token
It will be if you don't fix it
How about this line
lcd.setCursor(, 0);
Shouldn't there be something before the comma ?
Or this line
lcd.begin;
Shouldn't there be some brackets after the function name, maybe even some parameters ?
Please post the full error message as requested
You are wrong. This is also a problem, the compiler just hasn't figured it out yet. When you fix the first error, it will highlight that line for you later.
The real problem is that you don't have the most basic understanding of programming language syntax - for example, that there is a semicolon after each line.
I would recommend you to read any basic book on the language before moving on.
-
From what we can guess, you have not tried to understand the sample sketches that come with the IDE.
-
Also, when you post your sketches, always post the complete sketch.
-
Please read the posting guidelines.