Hi All
I would like to pronpt the user on my LCD for input ...
capture several key presses followed by a hash # signifying input is complete ...for example 123#
Display it on the LCD
Then transmit the number 123
I'm guessing something like
So would i alter (if I may and can) Steves keypad code to somthing likeCode:newkey VAR byte ' this would equal keypress1 , 2,3 etc Pause 500 ' Wait for LCD to startup main: Lcdout $fe, 1 ' Clear LCD screen Lcdout "Enter key followed by #" ' prompt user for input # denotes end of input HERE"S where I'm struggling << how do i get the keypresses into one VAR Lcdout "Input successful" SEROUT RX_To_PC, N2400, [newkey] pause 2000 Lcdout "Code sent" goto main
Instead of the Serout in the program send the first keypress to something like
Key_Press1 then Key_Press2 then Key_Press3 etc ...
and keep doing it until a # input is observed ?
Is this possible ?
Any help would be appreciated
Kind regards
Dennis




Bookmarks