Im having a hard time getting a read out from my 3x4 keypad.
Im having a hard time getting a read out from my 3x4 keypad. Its hooked up to an ede1144 encoder and from there using a serial connection out of pin 1 to my BS2. Ive search the recent post on this forum(File...... EDE1144_Sub.bs2 ) and still cant get right. I dont have a LCD in the circuit. i would like to see the number i push on the keypad display on the debug window. I think what im having a hard time understanding is the LOOKUP command/ values within the bracket(knowing how to get them to correspond with the key pad. when i run the program all i see displaying on the debug terminal is outkey=0. when i push a number on the keypad it does nuthing. can some one please help pme with an example code or a beakdown of what i should do. allt in all im lost
. thanx for all the help in advance
Post Edited By Moderator (Chris Savage (Parallax)) : 1/4/2008 6:31:10 PM GMT


Post Edited By Moderator (Chris Savage (Parallax)) : 1/4/2008 6:31:10 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
As the author of the code I would recommend that you change the necessary SEROUT statements which apply to the LCD and change them to DEBUG statements. You may need to consult the documentation for the LCD to see what some of the code were doing so you can properly translate them to work with DEBUG. As for the LOOKUP values…the EDE1144 returns the row/column values start at $01 serially from left to right, top to bottom. Unfortunately, most keypads aren’t laid out like that and the values don’t correspond to the ASCII values of the keys, which is sometimes more desirable. The LOOKUP takes the returned index value from the EDE1144 and translates it into the ASCII code for that key, which for my example is listed at the end of the code. I hope this helps. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
i was continously getting "outkey=0" in the debug terminal. and when i press a·number·on the keypad it·halts. when i let go on the key that was pushed in on the keypad it continues displaying "outkey=0".·yesterday i decided to removed the keypad out of the circuit out of curiousity and ran the program. In doing so i got the same results, the debug terminal displayed "outket=0"
would this implie that i have a connection problem/ or fault somewhere?
qoute:
As the author of the code I would recommend that you change the necessary SEROUT statements which apply to the LCD and change them to DEBUG statements. You may need to consult the documentation for the LCD to see what some of the code were doing so you can properly translate them to work with DEBUG. As for the LOOKUP values…the EDE1144 returns the row/column values start at $01 serially from left to right, top to bottom. Unfortunately, most keypads aren’t laid out like that and the values don’t correspond to the ASCII values of the keys, which is sometimes more desirable. The LOOKUP takes the returned index value from the EDE1144 and translates it into the ASCII code for that key, which for my example is listed at the end of the code. I hope this helps. Take care.
^^^ill definitly give that a try