Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: Key board interface



"Gary Kato" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I assume it's a 6 by 7 unencoded keypad? The usual way is to attach the
columns
> to one port and the rows to another port. You set one port to output all
ones
> except the one you are interested in. You read the other port. The bit
with the
> 0 tells you which switch was being pushed (if any).
>

    Don't forget to add some debounce code afterwards ----------





<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.