Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/01/03 02:27
Read: times


 
#51872 - RE: software debouncing
Responding to: ???'s previous message


1.Start
2.scan the key
3.wait for 20-50 milliseconds
4.scan the key again
5.if key is not still down goto step 7
6.store and process the key
7.exit


The pseudo code should be like this ?
===============
KeyScan:
1.Start
2.scan the key
3.If not down goto step 7
4.Wait for 20-50ms
5.key still down? If not goto step 7
6.excute keydown statements
7.exit

Call KeyScan every 100mS or as required.
================

Raghu


List of 8 messages in thread
TopicAuthorDate
software debouncing            01/01/70 00:00      
   RE: software debouncing            01/01/70 00:00      
      RE: software debouncing            01/01/70 00:00      
   RE: software debouncing            01/01/70 00:00      
      RE: software debouncing            01/01/70 00:00      
         RE: software debouncing            01/01/70 00:00      
            RE: software debouncing            01/01/70 00:00      
   RE: software debouncing (alternative)            01/01/70 00:00      

Back to Subject List