??? 07/20/04 01:22 Read: times |
#74480 - RE: Push Button Bouncing Time Method Responding to: ???'s previous message |
Dear Oleg,
"I wait not for push event but for realization one as well. " I suppose you mean "release". Yes it is a good idea to record a valid push ( after debounce time ) and then record the release ( also after a debounce time ). And the choice of a PCA port to do this is great. I normally use such push-release sensing with good effect to code auto sensing fast scroll mechanisms. Like when a user input has to be changed over a large span, then (s)he holds the key pressed continuously. The code checks for a non-release of key for over 3 seconds and then modifies the input value 10 times faster. Hold it for 6 seconds it goes much faster. Want to alter only the last decimal ?- no problem just release and give it a short push. Raghu |