Description: The function kbd_rdchr() does not riqueres interrupts or timers. Just call it when your program needs to read a key, it also does not queue those keys in any way. This function handles a 3x4 matrix keyboard conected at port defined as "kdb_port"
kdb_port pins from 7 to 4 manages col from 1 to 3
kdb_port pins from 3 to 0 manages row (also lines) from 1 to 4. It is possible to deal with a 4x4 matrix keyboard just changing "kdb_cnt_col" variable value from 3 to 4.
Manoel Gomes de Andrade
andrade.manoel(AT)gmail.com
File list (Check if you may need any files):
readme.txt
kbd_rdchr.c