Well, if you can afford to waste time, just sense the very first switch contact closing, start your routine and then wait 500ms... if the user holds the key down, you would have a "repeatable" key, as the PC keyboard does. Rich Leggitt wrote: > > Hi Jason, > > It's a myth that you must have special debounce code in cases where you > control the sample rate. > > A typical switch will bounce for 25-35 mS after activation, simply poll it > every 40 mS and debounce is not an issue. > > --- Rich > > > Hi, > > > > I'm still a little unsure of how to de-bounce momentary > > push button switches please could someone send me some code > > so that I can try to follow it. > > > > Please be patient I'm new to this game !!!!!!