Skip to content

Instantly share code, notes, and snippets.

@peterdikant
peterdikant / midi-footswitch.ino
Last active February 7, 2016 06:06
Arduino Footswitch to MIDI controller
// pin to use for indicator LED
int ledPin = 12;
// pin that is connected to the footswitch
int buttonPin = 2;
int buttonState = 0;
int buttonLastState = 0;
int buttonInitState = 0;
int muteStatus = 0;