C:\Users\User\OneDrive\Desktop\sketch_feb28a\sketch_feb28a.ino:2:1: error: expected unqualified-id before '\x616c'
'liquidCrystal'? lcd(12, 11, 5, 4, 3, 2);
^~~~~~~~~~~~~~~
C:\Users\User\OneDrive\Desktop\sketch_feb28a\sketch_feb28a.ino: In function 'void setup()':
C:\Users\User\OneDrive\Desktop\sketch_feb28a\sketch_feb28a.ino:8:3: error: 'lcd' was not declared in this scope
lcd.begin(16, 2);
^~~
C:\Users\User\OneDrive\Desktop\sketch_feb28a\sketch_feb28a.ino:11:3: error: 'led' was not declared in this scope
led.setCursor(0, 1);
^~~
C:\Users\User\OneDrive\Desktop\sketch_feb28a\sketch_feb28a.ino: In function 'void loop()':
C:\Users\User\OneDrive\Desktop\sketch_feb28a\sketch_feb28a.ino:19:7: error: 'lcd' was not declared in this scope
lcd.clear();
^~~
C:\Users\User\OneDrive\Desktop\sketch_feb28a\sketch_feb28a.ino:24:15: error: expected ':' before ';' token
case 0;
^
C:\Users\User\OneDrive\Desktop\sketch_feb28a\sketch_feb28a.ino:42:15: error: expected ':' before ';' token
case 6;
^
exit status 1`Use code tags to format code for the forum`
Compilation error: expected unqualified-id before '\x616c'`Use code tags to format code for the forum`
And the question is …?
Please read the guidelines , detail your project, it’s code etc
@orchidpython711
Isn't project 11 the Crystal Ball that uses an LCD?
Did you install the LiquidCrystal library?
If not, you must install the library
In the original Arduino Project Book, Project 11 is "Crystal Ball" using a 16x4 LCD and "Digital Hourglass" is Project 8, using LEDs. https://www.eitkw.com/wp-content/uploads/2020/03/Arduino_Projects_Book.pdf
I think you are on Project 11 "Crystal Ball"... see linked book above.
The first line of your error shows this:
The line in your code should read this...
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
Notice the "case" of the "L" and "C"... you must follow case or errors will happen...
After correcting the spelling, try compiling again.
1 Like