Hey I am kind of new to arduino and was trying to get my parallax 27977 lcd display to work with the example sketch
Here:
/*
NOTE: you must: #include <NewSoftSerial.h>
BEFORE including the ParallaxLCD.h header
*/
#include <NewSoftSerial.h>
#include <ParallaxLCD.h>
ParallaxLCD lcd(2,2,16); // desired pin, rows, cols
void setup () {
lcd.setup();
delay(1000);
lcd.backLightOn();
lcd.at(1,4,"Milliseconds\0");
delay(1000);
lcd.off();
delay(1000);
lcd.on();
lcd.pos(0,1);
lcd.at(2,7,"m:\0");
for (int b=0; b<101; b+=5) {
lcd.pos(0,3);
lcd.at(2,9,millis());
delay(500);
}
lcd.empty();
lcd.print("Line Feed\0");
for (int b=0; b<51; b+=5) {
lcd.lf();
delay(500);
}
lcd.empty();
lcd.print("Chr Return\0");
delay(1000);
for (int b=0; b<51; b+=5) {
lcd.pos(0,11);
delay(500);
lcd.cr();
delay(500);
}
lcd.cursorBlock();
lcd.empty();
lcd.print("Block Cursor\0");
for (int x=1; x<16; x++) {
lcd.pos(1,x);
delay(500);
}
lcd.empty();
lcd.pos(1,1);
lcd.cursorUnderline();
for (int x=1; x<16; x++) {
lcd.pos(1,x);
delay(500);
}
lcd.backLightOff();
lcd.cursorOff();
}
void loop () {
lcd.at(2,9,millis());
}
But when i verify the sketch I get this:
In file included from LCD_2x16.cpp:11:
C:\Users\Mitchell Haley\Documents\Desk\gta and ard\ard\arduino-1.0\libraries\parallaxlcd/ParallaxLCD.h:23:22: error: WProgram.h: No such file or directory
In file included from LCD_2x16.cpp:11:
C:\Users\Mitchell Haley\Documents\Desk\gta and ard\ard\arduino-1.0\libraries\parallaxlcd/ParallaxLCD.h:44: error: expected class-name before '{' token
C:\Users\Mitchell Haley\Documents\Desk\gta and ard\ard\arduino-1.0\libraries\parallaxlcd/ParallaxLCD.h:51: error: 'boolean' has not been declared
LCD_2x16.cpp: In function 'void setup()':
LCD_2x16.pde:-1: error: 'class ParallaxLCD' has no member named 'print'
LCD_2x16.pde:-1: error: 'class ParallaxLCD' has no member named 'print'
LCD_2x16.pde:-1: error: 'class ParallaxLCD' has no member named 'print'
Any and all help is greatly apreciated.
Moderator edit: [code] ...
[/code] tags added.
(Nick Gammon)