Pages: [1]   Go Down
Author Topic: Sparkfun Serial Enabled 16x2 LCD on Arduino Uno  (Read 1296 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello
I just got a Arduino Uno and a Sparkfun Serial Enabled 16x2 LCD # ADM 1602U.
I try to display the word "Hello" on the lcd using this code:

void setup()
{               
  Serial.begin(9600);
  pinMode(1, OUTPUT);     
}
void loop ()
{
  Serial.print(245, BYTE);
  Serial.print(1, BYTE);
  Serial.print("Hello ");
}

The word "Hello" appears twice on the screen, surrounded by junk symbols.
If I run the program again, the output changes but the word "Hello" always appears.
As you can see, I am new to electronics and programing.
Any help is appreciated.

Thanks
Tom



 
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 170
Posts: 12483
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Not familiar with that particular screen,

the 245 and 1 are some sort of clearscreen command?

the loop() part will print the word hello over and over again , try this for a change

Code:
void setup()
{               
  Serial.begin(9600);
  pinMode(1, OUTPUT);     

  Serial.print(245, BYTE);
  Serial.print(1, BYTE);
  Serial.print("Hello ");

}
void loop ()
{
}
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Pages: [1]   Go Up
Jump to: