I’m trying to compile some of the built-in examples for LiquidCrystal library like “Blink.”
I get these errors:
Blink:42: error: ‘LiquidCrystal’ does not name a type
Blink.cpp: In function ‘void setup()’:
Blink:46: error: ‘lcd’ was not declared in this scope
Blink.cpp: In function ‘void loop()’:
Blink:53: error: ‘lcd’ was not declared in this scope
I get the same errors with all the LiquidCrystal examples.
To try to isolate what’s going on I compiled the following code with no errors.
#include <LiquidCrystal.h>
// LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
But when I remove comments from // LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
I get this error:
BareMinimum:1: error: ‘LiquidCrystal’ does not name a type
Any help will be greatly appreciated.