I am planning to make a LCD based project. It will use many different buttons as inputs.
The aim is to get the LCD to display a button name, then time from the message being displayed and the user pressing the button.
I have some ideas, but don't know the best way to go about:
- Storing/calling 1-2 line, 16 character messages
- Testing for inputs, sometimes more than one at a time
Any help please? Cheers,
Ben
mem
2
Hi Ben
I suggest you break the project into steps.
First get the LCD going using one of the example sketches.
Then modify the sketch to detect and display a message when a button is pressed.
Then add code to measure and display the time for a button press.
Then add code to handle multiple events.
If you do it in easy steps it shouldn't be difficult.
Have fun!
Cheers, i'll have a go at displaying some messages. Then i'll try and get events to link to diffrent messages; and develop on for there.
mem
4
Please keep us posted here with your progress
To time the length between a point and an input, would i:
- Set a variable with millis() say StartTime
- Start the display/time function
- Then to get time taken do: millis() - StartTime?