Go Down

Topic: lcd.clear() problems (Read 97 times) previous topic - next topic

antonytvton

Hi,
I expect following code to blink "Hello" on the screen:

 
void loop()
{
    lcd.print("Hello");
    delay(1000);
    lcd.clear();
    delay(1000);
}

Instead, what I see is: HelloHelloHelloHello all the way through.  Obviously, the clear() command never works. 

The way I set up my lcd is:
LiquidCrystal lcd(1, 8, 4, 5, 6, 7);


That is, the data pins are 4, 5, 6, 7. The rs bin is 1.  The en pin is 8.


Thanks in advance.

bperrybap

Pin 1 is for the serial port. Try using a different pin.

--- bill

antonytvton

Thank you.  That works.

Go Up