Close

Painful Programming

A project log for Programmble USB Footswitch

A simple device that replicates a keypress via USB from a footswitch

steve-smithSteve Smith 06/04/2019 at 08:570 Comments

The design changed a bit. Namely, the reduction of DIP Switches to just the one. All the storing of characters is now done in on board memory. Between us, Russ and I managed to get the code to run how it is supposed to. For a long while, we tried to use 'if' statements to read the status of the inputs, but this failed for some reason. After splitting the main Foot Switch routine up a little, it started to work correctly.

I added a toggle switch for testing purposes, it disables the output allowing programming if the code got stuck in a loop, sending endless characters out. This happend on a few occasions! Now the code is fixed, I'm persuing the use of the toggle switch to change keypress modes between repeated and constant. At the moment, the code enables the Keyboard library, presses a key and then disables the Keyboard library. This doesn't allow for constant key presses. Another solution will need to be found.

Discussions