A MIDI footswitch firmware for STM32F1-series microcontrollers