Arduino due build-in interrupt debouncing

arduinodebounce

According to the SAM3X handbook it can do debouncing of interrupts "automatically", how would I enable that on an arduino due? The doc http://www.atmel.com/Images/doc11057.pdf states something about setting it directly in the PIO.

Best Answer

Then that's what you'd do. The Arduino libraries are not omnipotent, nor do they even expose all the functionality available. Sometimes you'll have no choice but to twiddle the bits yourself.