Sketch for Adafruit's Pro Trinket that reads in the input from an SNES controller and outputs gamepad over USB.
This code is designed for Adafruit's Pro Trinket 5V. Instructions for setting up the Pro Trinket in the Arduino IDE can be found here.
For the Pro Trinket, set the board to Adafruit Pro Trinket 16MHz(USB)
and the programmer to USBtinyISP
in the Arduino IDE. Learn more about about the Pro Trinket here.
SNES | Pro Trinket |
---|---|
White(Vcc) | 5V |
Orange(Latch) | GPIO 3 |
Red(Clock) | GPIO 5 |
Yellow(Data) | GPIO 6 |
LED(on board) | GPIO 13 |
LED(function mode status) | GPIO 9 |
Button(for function mode) | GPIO 10 |
The Pro Trinket can then be programmed and connected to the computer using a USB cable.
Thanks to zfergus/trinket-snes-controller
- Function mode implementation.
MIT.