Pages: [1]   Go Down
Author Topic: SerLCD help  (Read 513 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
void setup()
  {
    Serial.begin(9600);
    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
« Last Edit: February 13, 2009, 11:58:07 am by MBrown551 » Logged

London
Offline Offline
Sr. Member
****
Karma: 0
Posts: 330
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


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.

Gordon
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a sparkfun serLCDv2.5 16x2. It uses HD44780 commands.
« Last Edit: February 13, 2009, 11:58:34 am by MBrown551 » Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 65
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

HTH

Ver
« Last Edit: February 13, 2009, 01:24:25 pm by vbu » Logged

Pages: [1]   Go Up
Jump to: