GitHub repository: ExternalMediaController/arduino-multi-button
Description: Reliable detection of single, double and long clicks for Arduino.