I had post a same message before. Timer0 scan a 3*4's keypad with 10mS Interval,and var Key will be changed to a value when button be pressed or 0xff when all buttons be unprssed.Every button include 4 letters,like,one button has '1','a','b','c'and another has '2','d','e','f'. How i can realize these as a keypad on mobilephone,as press button '1' once Key == '1',and double press it quickly Key == 'a',etc?can you give me some source code for exsample? Best regards, Nanntiangumo
Sounds like a State Machine would be an ideal approach to this problem.