I’m trying to create a library so that I can print to the LCD unit. The original program is so large, I’d like to create a support library to relieve some of the confusion. I used a modified example from the LCD library for the .ino file and created a .cpp file along with a header file. They are attached.
I keep getting this error:
J:\sketches\libraries\LCDlibraryTest\Lcdtest.cpp:17:2: error: ‘lcd’ was not declared in this scope
I don’t understand why lcd in the .cpp file is being interpreted as a variable when it’s part of the LiquidCrystal library. Is this just a quirk of C++ and I can only use the LCD library in the .ino file?
Lcdtest.cpp (297 Bytes)
LCDtest.h (231 Bytes)
LcdLibraryTest.ino (586 Bytes)