[En-Nut-Discussion] 4x4 keyboard driver

Roman Avramenko nut at imsystems.ru
Fri Aug 8 11:15:27 CEST 2003


Hello Harald,

Friday, August 08, 2003, 12:19:33 PM, you wrote:

>>
>>Is there a 4x4 keypad driver for NutOS? It is not difficult to do it,
>>but I don't want to re-invent the wheel.

HK> I can easily make it difficult. :-) How about configurable
HK> repeat rate?

I don't know how it will be in English (exactly), but in Russian, we
are saying something like: it is always too difficult to make simple :)

HK> Upto now I always integrated it somehow into the application,
HK> and it's always very specific and no separate code. I'd like
HK> to have a keyboard, from which I could read with getchar or
HK> fgets etc.

It is quite enough to use 4x4 keypad for most simple HMI interfacing.
This small keypad will only consist of numeric chars, Esc, enter,
backspace, and, optionally, shift key. In that case, you can input
only numeric and function chars, and do not need auto-repeat at all.

We will need separate thread in the driver to do keypad scanning.
Calling _ioctl function for such driver, we could set up the scan rate
and keyboard map.

What do you think about it?

-- 
Best regards,
 Roman                            mailto:nut at imsystems.ru





More information about the En-Nut-Discussion mailing list