GetKeypad and GetKeypadRaw

Started by Ken Strauss September 29, 2006
I am using the LCDX board for a camera control project. The documentation
describes two routines to read from the keypad. One, GetKeypad, is supposed
to return results in the range of 0 to 15 (plus 255 for nothing pressed).
The other, GetKeypadRaw, is supposed to return the scan code from the
keypad.

I am unable to locate GetKeypadRaw and the supplied version of GetKeypad
returns the raw scan codes instead of 0-15. Has anyone else noticed this
discrepancy? I can obviously write my own GetKeypad but thought that I would
ask what others have done.
Are you using the current (2005-05-12) LCDX function library? It's at
http://tech.groups.yahoo.com/group/basicx/files/LCDX/ .
Tom
I've checked that version and it fixes the keypad issue; I originally used
the one from the CD that came with my board.

There appear to be numerous small differences between the routines in
LCDXlib, LCDXapi, LCDdriver, etc regarding definitions, preservation of row
and column and other things. Is there a definitive one that should be used?

> -----Original Message-----
> From: b... [mailto:b...] On Behalf Of
> Tom Becker
> Sent: Friday, September 29, 2006 10:54 AM
> To: b...
> Subject: Re: [BasicX] GetKeypad and GetKeypadRaw
>
> Are you using the current (2005-05-12) LCDX function library? It's at
> http://tech.groups.yahoo.com/group/basicx/files/LCDX/ .
> Tom
> ... numerous small differences between the routines in LCDXlib, LCDXapi, LCDdriver, etc...

You should use the current LCDX library; remove the older one. Do not
use the library supplied on the CD (unless it is also the 2005-05-12
file, of course).
Tom