Setting up debounce with millis()

Thanks for sharing.

For most applications, all you need to do is check your switches every now and then, ex. 50ms.