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.
LCD Display Clear
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel