LCD Display Clear

Forum for problems or queries regarding other Flowcode Components. Eg LEDs, Switches, LCD, Gfx LCD etc

Moderators: Benj, Mods

Flowcode V4 User
Posts: 1
Joined: Sun Apr 15, 2007 2:27 pm

LCD Display Clear

Postby Tim115 » Sun Oct 18, 2009 6:56 pm

I have a project that requires the LCD to display a message when one of eight input buttons is pressed. The thing that is causing me much grief is getting the message to display only once, then clear and remain in the cleared state until the next button is pressed. Note the buttons keep the port pin held high as part of the normal functionality of the system this has caused a bit of fun with the display and switch push timing.

If anybody has any advise or an example on how to go about this then it would be most helpful.

User avatar
Matrix Staff
Posts: 14587
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4608 times
Been thanked: 4242 times

Re: LCD Display Clear

Postby Benj » Mon Oct 19, 2009 8:38 am


You could do it like this.

Read a single switch into a variable using an input icon,
Use a decision to see if the switch is held low,
If the switch is held low then clear the display and print your message,
Then repeat for the other switches.