LCD Display Clear

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

Moderators: Benj, Mods

Post Reply
Tim115
Flowcode V4 User
Posts: 1
Joined: Sun Apr 15, 2007 2:27 pm
Contact:

LCD Display Clear

Post by Tim115 »

Hi,
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
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: LCD Display Clear

Post by Benj »

Hello

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.

Post Reply