need help with LCD display - showing long messages

Hello,
I am using a serial enabled Sparkfun 16x2 LCD Display with the code below.
I want sentances that are longer than what fits on the display to be displayed like a ticker, running from right to left…
How could I do that? Any ideas?
Thanks!

void setup()
{
Serial.begin(9600);
backlightOn();
}

void loop()
{
selectLineOne();
delay(100);
Serial.print(“This sentance is very long and therefore cannot be displayed in one piece.”);
selectLineTwo();
delay(100);
Serial.print("");
delay(100);
}

void selectLineOne(){ //puts the cursor at line 0 char 0.
Serial.print(0xFE, BYTE); //command flag
Serial.print(128, BYTE); //position
}
void selectLineTwo(){ //puts the cursor at line 0 char 0.
Serial.print(0xFE, BYTE); //command flag
Serial.print(192, BYTE); //position
}
void goTo(int position) { //position = line 1: 0-15, line 2: 16-31, 31+ defaults back to 0
if (position<16){ Serial.print(0xFE, BYTE); //command flag
Serial.print((position+128), BYTE); //position
}else if (position<32){Serial.print(0xFE, BYTE); //command flag
Serial.print((position+48+128), BYTE); //position
} else { goTo(0); }
}

void clearLCD(){
Serial.print(0xFE, BYTE); //command flag
Serial.print(0x01, BYTE); //clear command.
}
void backlightOn(){ //turns on the backlight
Serial.print(0x7C, BYTE); //command flag for backlight stuff
Serial.print(157, BYTE); //light level.
}
void backlightOff(){ //turns off the backlight
Serial.print(0x7C, BYTE); //command flag for backlight stuff
Serial.print(128, BYTE); //light level for off.
}
void serCommand(){ //a general function to call the command flag for issuing all other commands
Serial.print(0xFE, BYTE);
}

http://arduino.cc/en/Tutorial/LiquidCrystalTextDirection

i saw that one but i’m confused because you have to write which pins you have connected the lcd to, and i am only using the rx pin for serial connection.

i’m using a different code now, this one has been working better than the other one, and i found the scroll function in the datasheet. it is however not scrolling only one line but two right now, and not scrolling completely, but only one character, and not really looking like a newsticker, which is what i want it to look like. does anybody know how to fix this?

#include <SoftwareSerial.h>
#include <SparkFunSerLCD.h>

SparkFunSerLCD led(2,1,16); // desired pin, rows, cols

void setup () {
led.setup();
backlightOn();
}

void loop () {
led.setup();
led.at(1,1,“This is the sentance I want to scroll.”);
scrollLeft();
// led.at(2,1,"");
delay(1000);
led.off();
delay(1000);
}

void scrollLeft(){
Serial.print(0xfe, BYTE); //command flag for different stuff
Serial.print(0x18, BYTE); // command for scrolling left.
}

void backlightOn(){ //turns on the backlight
Serial.print(0x7C, BYTE); //command flag for backlight stuff
Serial.print(157, BYTE); //light level.
}
void backlightOff(){ //turns off the backlight
Serial.print(0x7C, BYTE); //command flag for backlight stuff
Serial.print(128, BYTE); //light level.

}

The Scroll command scrolls all lines of the display left or right.

Put the scroll command in a function that calls clear. Then it will clear the screen and scroll the display. You should count the characters then stop call home and then exit.

Then you use set cursor to position it to the next line draw information there then call the scroll function.

repeat.

No it's not optimal. Someone else had a problem like yours and the work around was tedious and not pretty.

http://arduino.cc/en/Tutorial/LiquidCrystalTextDirection

A nice terse answer which is not applicable to this problem.

Don