Arduino Forum

Using Arduino => Displays => Topic started by: antonytvton on May 19, 2019, 08:13 am

Title: lcd.clear() problems
Post by: antonytvton on May 19, 2019, 08:13 am
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.
Title: Re: lcd.clear() problems
Post by: bperrybap on May 19, 2019, 08:25 am
Pin 1 is for the serial port. Try using a different pin.

--- bill
Title: Re: lcd.clear() problems
Post by: antonytvton on May 19, 2019, 07:04 pm
Thank you.  That works.