Pages: [1]   Go Down
Author Topic: conflict liquidCrystal - Serial  (Read 610 times)
0 Members and 1 Guest are viewing this topic.
Milano
Offline Offline
Sr. Member
****
Karma: 0
Posts: 362
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everyone,
who can tell me how with the following code:

Code:
void setup(){
//set up lcd with #row and #columns
lcd.begin(numR,numC);
lcd.setCursor(0,0);
lcd.print("Gmail Notifier");
lcd.setCursor(2,2);
lcd.print("unread mails");
Serial.begin(9600);      
}
some characters don't appear correctly on the LCD.

But commenting on the line
Code:
//Serial.begin(9600);      
everything works perfectly

thanks in advance
« Last Edit: December 01, 2009, 11:03:21 am by uccio » Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 631
Posts: 50086
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It would be helpful to know what (else) you have connected to the Arduino. Is something connected to the TX and/or RX pins?

What happens if you move the Serial.begin statement before the lcd stuff?
Logged

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

Quote
It would be helpful to know what (else) you have connected to the Arduino. Is something connected to the TX and/or RX pins?

LCD                                         ARDUINO
* RS pin (4)                           digital pin 12
* Enable pin (6)                     digital pin 11
* D4 pin (11)                         digital pin 5
* D5 pin (12)                        digital pin 4
* D6 pin (13)                         digital pin 3
* D7 pin (14)                         digital pin 2
* R/W pin (5)                          GND

Quote
What happens if you move the Serial.begin statement before the lcd stuff?

same behavior. Can anyone try this code?
Logged

0
Offline Offline
Full Member
***
Karma: 1
Posts: 236
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i remember, this was quistioned before.
Just search it up, i dont't remember the whole thread. But it was also about "lcd not work, but commenting out serial works".
Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 39
Posts: 4382
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
lcd.begin(numR,numC);
You've got this backwards.

This is not going to fix your problem since the library will work as long as the value of the second argument (numC in your case) is greater than 1, but I thought you would like to know.

Don



Logged

Pages: [1]   Go Up
Jump to: