Why switch debouncing is so important…

Here's a graphic illustration of why mechanical switch debouncing is so important:     It's the output of a push-button switch when I press it. The metal contacts inside the switch bounce against each other, creating two pulses when I expected just one. If I'd been debugging something sensitive to...