slight_ButtonInput arduino library for extended / event-based button handling to get started try the minimal sketch.