Go Down

Topic: SerLCD help (Read 900 times) previous topic - next topic


Feb 13, 2009, 03:24 pm Last Edit: Feb 13, 2009, 05:58 pm by MBrown551 Reason: 1
Hi.  I am new to this forum.  I just needed some help trying to get my LCD display what I want it to display.  I am trying to get my LCD to display a string at two parts of my LCD screen.  I can get two different string to display on two different rows, but I can't get it to display two different strings on the same row.  Here is my code which isnt working.

Code: [Select]
void setup()
   Serial.print(0xFE, BYTE);
   Serial.print(0x01, BYTE);
   Serial.print("Deg F:"); //displays what its supposed to
   Serial.print(0xFE, BYTE);
   Serial.print(160, BYTE); //This should move the curser over
   Serial.print("test"); //I thougt this would display but it doesn't

 void loop()

Am I doing something majorly wrong here or is it something small that I am missing.  Thanks in advance.

Edit:  A little more information.  I have a sparkfun serLCDv2.5 16x2


Im using a serial interface for my lcd at the moment.
Its very easy to use. But I had to look very carefuly at the spec for the control codes.
There are several different types around all of them with slightly different codes for the various functions such as cursor positioning and other functions.

Which lcd serial controller have you got?
Is there a data sheet for the device?
and what lcd have you attached to it?
How many rows and columns.



Feb 13, 2009, 05:55 pm Last Edit: Feb 13, 2009, 05:58 pm by MBrown551 Reason: 1
I have a sparkfun serLCDv2.5 16x2. It uses HD44780 commands.


Feb 13, 2009, 07:23 pm Last Edit: Feb 13, 2009, 07:24 pm by vbu Reason: 1
I have the same LCD you have.

Have you tried the code in this topic http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1194653133/4 ?  I'm using it in my alarm clock project and can print text at any position.



Go Up