homebrew minidox keyboard driver
The arduino running this code polls the buttons (using a diode matrix) and keeps track of their state. If a button goes from pressed to unpressed or vise versa, it sends the appriate keystroke to the computer. The microcontroller must support the Keyboard Library.
However, only the left hand side runs this code. The other half of the story (ha!) is the right hand, who's serial out goes to a software serial in on the left. It spits out descriptions of what is happening to it. This isn't how I would like for it to work, but parsing its output is easier than fixing it. You see, I lost the code to it and it requires a bunch of work to upload to anyway. Now it is a black box that spits out coordinates of buttons as they are pressed and releasd. You might see the Magic Number desity go way up in the section of code that deals with this unfortunate situation, but don't worry! We can use the old #define THREE 3
trick if need be.