LCD Display Clear

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

Moderators: Benj, Mods

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

LCD Display Clear

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

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: 14329
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4415 times
Been thanked: 4131 times
Contact:

Re: LCD Display Clear

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

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.