I tried using this example in the learning section it seems outdated? Arduino Playground - SerialLCD
It says to replace the BYTE and serial.print with serial.write. I did a find and replace for both of those then it just starts nit picking everything on down the page. i used thsi link http://blog.makezine.com/2011/12/01/arduino-1-0-is-out-heres-what-you-need-to-know/ to find out about replacing the serial.print etc.
I just need a real simple example that says hello world to my display and that is it. All the other examples have like 50 lines of code and expect me to know what to leave in or out.
and links on serial lcd displays using arduino I am actually quite dissapointed as i cant seem to find any and all my displays are serial matrix orbital displays.
here is my code so far after doing the find and replace, i get sketch_sep23c:153: error: expected primary-expression before ')' token on most any line i dont delete.
// *
// * ------------
// * Control a Serial LCD Display
// *
// * Tested on a Matrix Orbital model LCD0821 display.
// * Other diplays will work but may have slightly different
// * command codes and hardware setups.
// *
// * Copyleft 2006 by djmatic
// *
// * ------------
// *
// *
// Declare your program variables here
// Arduino and LCD setup
void setup()
{
Serial.begin(19200); // era beginSerial
// LCD setup commands: uncomment the ones you want to use
// Note: These codes (i.e. the ones following 254) may have to be changed for
// different manufacturer's displays
// Turn Auto scroll ON
// Serial.write(254, );
// Serial.write(81, );
//
// Turn Auto scroll OFF
// Serial.write(254, );
// Serial.write(82, );
// Turn ON AUTO line wrap
// Serial.write(254, );
// Serial.write(67, );
// Turn OFF AUTO line wrap
// Serial.write(254, );
// Serial.write(68, );
// Turn OFF the block cursor
// Note that setting both block and underline
// cursors may give unpredictable results.
Serial.write(254, );
Serial.write(84, );
// Turn ON the block cursor
// Serial.write(254, );
// Serial.write(83, );
// Turn ON the underline cursor
// Serial.write(254, );
// Serial.write(74, );
// Turn OFF the underline cursor
// Serial.write(254, );
// Serial.write(75, );
}
// MAIN CODE
void loop()
{
//backlightOn(0); // turn the backlight on all the time
clearLCD();
Serial.write(" Hello"); // print text to the current cursor position
newLine(); // start a new line
Serial.write("Arduino");
delay(5000);
}
// LCD FUNCTIONS-- keep the ones you need.
// clear the LCD
void clearLCD(){
Serial.write(12, );
}
// start a new line
void newLine() {
Serial.write(10, );
}
// move the cursor to the home position
void cursorHome(){
Serial.write(254, );
Serial.write(72, );
}
// move the cursor to a specific place
// e.g.: cursorSet(3,2) sets the cursor to x = 3 and y = 2
void cursorSet(int xpos, int ypos){
Serial.write(254, );
Serial.write(71, );
Serial.write(xpos); //Column position
Serial.write(ypos); //Row position
}
// backspace and erase previous character
void backSpace() {
Serial.write(8, );
}
// move cursor left
void cursorLeft(){
Serial.write(254, );
Serial.write(76, );
}
// move cursor right
void cursorRight(){
Serial.write(254, );
Serial.write(77, );
}
// set LCD contrast
void setContrast(int contrast){
Serial.write(254, );
Serial.write(80, );
Serial.write(contrast);
}
// turn on backlight
void backlightOn(int minutes){
Serial.write(254, );
Serial.write(66, );
Serial.write(minutes); // use 0 minutes to turn the backlight on indefinitely
}
// turn off backlight
void backlightOff(){
Serial.write(254, );
Serial.write(70, );
}
can anyone edit that code down so a serial matrix orbital display hooked up like he shows using rx and tx pins can just say hello world to me etc. then i can take a breath adn move on but this is really annoying.