Gamecontroller.ino

Main sketch for the sparkfun leonardo pro micro that is being used as game controller.

ino - 5.44 kB - 11/12/2016 at 00:56

Download

DMG_4button_rev1_drill_template.pdf

Drill template for the additional X and Y buttons for the kitsch-bent common ground PCB used in this project.

Adobe Portable Document Format - 6.51 kB - 11/07/2016 at 23:31

Preview
Download

shutdown.py

This is the "safe shutdown" script that I use as a sort of "daemon" to run in the background on the Raspberry Pi itself to listen for a GPIO event from either the integrated shutdown switch in the upper right, or the arduino when the battery is empty. The script is written so that you need to hold the button for around 1 second to trigger the event, so you won't have an accidental suprise. (:

plain - 790.00 bytes - 11/07/2016 at 17:10

Download

asound.conf

This is to combine both audio channels (left and right), because I only use one mono speaker.

conf - 364.00 bytes - 11/07/2016 at 17:10

Download

SF32u4_boards-pre-1.6.zip

This is an additional library from sparkfun, which is used for my sparkfun leonardo pro micro. I use the arduino 1.0.5r2 IDE, so I have to use the pre-1.6
You can find the original file from here: https://github.com/sparkfun/SF32u4_boards/releases/tag/pre-1.6

Zip Archive - 727.98 kB - 11/07/2016 at 17:09

Download

USBAPI.h

This is my modified version of the original arduino USBAPI.h, found in arduino/hardware/arduino/cores/arduino which is needed to make my sketch (Gamecontroller.ino) work.

plain - 6.30 kB - 11/07/2016 at 17:08

Download

HID.cpp

This is my modified version of the original arduino HID.h, found in arduino/hardware/arduino/cores/arduino which is needed to make my sketch (Gamecontroller.ino) work.

plain - 19.01 kB - 11/07/2016 at 17:08

Download

Batterywatcher.ino

This is the arduino uno (or any other atmega328 compatible board) sketch for the battery monitoring and automatic shutdown

ino - 1.02 kB - 11/07/2016 at 17:08

Download