Go Down

Topic: conflict liquidCrystal - Serial (Read 622 times) previous topic - next topic

uccio

Dec 01, 2009, 05:02 pm Last Edit: Dec 01, 2009, 05:03 pm by uccio Reason: 1
Hi everyone,
who can tell me how with the following code:

Code: [Select]

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: [Select]
//Serial.begin(9600);      
everything works perfectly

thanks in advance

PaulS

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?

uccio

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?

Pumbaa

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".

floresta

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




Go Up