Hello,
My son and I am writing a basic alarm program that includes a keypad and an LCD (serout on an O/P pin).
We have come to part of the code where we want to display a message on the LCD with a countdown time (5 seconds) and at the same time monitor the keypad for a key press.
I have written the code to pole the keypad for key presses and it has worked fine in other parts of the program I just cant get my head round how I can set up a timer to count down from 5 to 0 and display it on the screen but at the same time still pole the keypad!!!
Your help is much appreciated, and let me remind you 'novice here' so go easy on me and please explain as much as you can, thanks.
John
My son and I am writing a basic alarm program that includes a keypad and an LCD (serout on an O/P pin).
We have come to part of the code where we want to display a message on the LCD with a countdown time (5 seconds) and at the same time monitor the keypad for a key press.
I have written the code to pole the keypad for key presses and it has worked fine in other parts of the program I just cant get my head round how I can set up a timer to count down from 5 to 0 and display it on the screen but at the same time still pole the keypad!!!
Your help is much appreciated, and let me remind you 'novice here' so go easy on me and please explain as much as you can, thanks.
John