Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An Arduino project for using pushbuttons as HID keyboard
C Java
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
doc
keyboard-firmware
keyboard
README.md

README.md

Arduino keyboard/button project

The folder doc/ contains this documentation, the schematic files (schematic.sch created with CADsoft Eagle and exported to .png), and a PDF file with the HID specification which contains the HID keycode table.

The folder keyboard/ contains the main Arduino program. It has a main loop which reads input pins and writes them on the serial port to the custom keyboard firmware. One thing to note here: the READMASK constant defines a bitmap mask which defines which 5 input pins (numbers 2 to 7!!) to read. For the 2-button controller shield, set this value to 5 to only read pins 2 and 4; for the joystick+button shield, set this value to 31, to read all inputs from 2 up to 7.

The folder keyboard-firmware/ contains the firmware for the Arduino UNO which allows it to act as a USB keyboard. It requires the LUFA library (version 110528). Source code was originally taken from this page and then adapted to work with a more recent LUFA.

Something went wrong with that request. Please try again.