LK204-25 - software question ?
Posted: Mon Jan 17, 2005 5:35 pm
Hi :
We use LK204-25 in our product as human interface via I2C bus, both display and keypad. however, we miss the key press somtimes, we have to press (a bit hard) same key again.
Because LK204-25 has a built-in CPU and buffers key press, our software has been designed quite simple to access key pad, it works like
main()
{
init();
while(1)
{
key = GetKeyPad(); // if no key buffeed, key =0
if(key) // if there is key only read one
{
....
}
...
}
}
Now I have question:
(1) Because LK204-25 buffers the key press, for above software solution, how possible to miss the key ?
(2) Does the buffered key have to be read out within certain time ? such as 500ms ro 1000ms.
(3) When you press the key, how many key has been read in by LK204 ?
I mean sometime you press a bit hard so that LK204 may recognize you press two or three even more times for the same key. What I want to do is only one key is picked no matter you press key hard or soft, is it possible ?
Thanks
Daniel
We use LK204-25 in our product as human interface via I2C bus, both display and keypad. however, we miss the key press somtimes, we have to press (a bit hard) same key again.
Because LK204-25 has a built-in CPU and buffers key press, our software has been designed quite simple to access key pad, it works like
main()
{
init();
while(1)
{
key = GetKeyPad(); // if no key buffeed, key =0
if(key) // if there is key only read one
{
....
}
...
}
}
Now I have question:
(1) Because LK204-25 buffers the key press, for above software solution, how possible to miss the key ?
(2) Does the buffered key have to be read out within certain time ? such as 500ms ro 1000ms.
(3) When you press the key, how many key has been read in by LK204 ?
I mean sometime you press a bit hard so that LK204 may recognize you press two or three even more times for the same key. What I want to do is only one key is picked no matter you press key hard or soft, is it possible ?
Thanks
Daniel