No idea if this was the latest code, but it looks close.
This is licensed under GPL v3, as it uses GPL v3 code for debouncing.
Uses the eRCaGuy_ButtonReader code at https://github.com/ElectricRCAircraftGuy/eRCaGuy_ButtonReader