Debounce InterruptIn

Dependents:   led_sigfox Allumag_lampe_sigfox Case_study_02_Turnstile B18_MP3_PLAYER ... more

Some fixes and improvements.

Hello, After I updated the mbed library, the DebounceInterrupt library didn't work anymore on the platform NUCLEO-L152RE. It turns out it was a problem with the Timeout object being global. So I corrected it. I took the opportunity to add a feature without destroying backward compatibility. You can now ask the function to be triggered as the interrupt is received and it will ignore all interrupts until the timeout expires. It's can be useful if you want reactivity and debounce.

Regards.

A replacement for InterruptIn that debounces the interrupt. debounce, interrupt, InterruptIn

1 comment:

19 Nov 2015

I forgot to remove an include in DebouncedInterrupt.cpp Please correct it.