Finally, let's test and make sure everything is working before fully re-assembling.
In order to properly read the piano key button state, the piano's audio switch needs to be turned on to either of the two volume settings.
Then connect the piano via USB to a computer and open your favorite text editor.
Using the CircuitPython code in this guide as-is:
Button 1 will type a lowercase 'a' character.
Button 2 will tab between active windows.
Button 3 will fire up and enter keys to easily to repeat the last terminal command.
Button 4 will highlight and copy the current line of code.
Button 5 will type "Hello World." at the start of the line.
Congratulations! You have successfully created a keyboard foot pedal with programmable macros.
Customize the code in this example to match your own workflow. Whether its gaming, video editing, or programming, there are so many new uses for this old toy.
Page last edited March 08, 2024
Text editor powered by tinymce.