ArcadeUSB
---------
Version : 2014-10-13

This arduino sketch has been developped for my bartop project. 
Just few words about my bartop.
It is not yet finished but it is composed mainly with :
- wood,
- a PC,
- a LCD display,
- buttons and joysticks.

To manage the buttons, it is necessary to have an interface between them and the PC in charge of the emulation.
There are different choices to do that.
Reusing an existing keyboard. This is cheap but it is difficult to assign buttons to specific key because the matrix is not so simple.
The other solution could be to buy a ready-to-use interface. I do not like this choice.
The last one is to make my own interface.

Instead of re-inventing the wheel, I have chosen the Teensy board. It is arduino compatible but it manages the USB natively.
Because I need to manage at least 30 different keys, I have decided to add a simple multiplexed inputs interface to the Teensy.

To go back to the sketch, it is very simple. It has been developped with Arduino 1.0.5 and targets a Teensy 2.0
Buttons should be connected to the interface according to the may mapping table (see code). Then the interface has to be connected to the Teensy board.

Have fun !

Buzz