Hello..!
I had a attached an interrupt function with press button (digital pin 2).
But problem is that when i Press the button, interrupt function called more than once because of debouncing
Since it is not recommended to use delay() in interrupt function.
so how do i stop debouching..?
You can't. You can do something when the time between a trigger of the ISR and the previous trigger is greater than some amount. This means, of course that you need to keep track of when the last time the ISR was triggered (as illustrated in the blink without delay example).