I would like a piece of code for Arduino Uno that will take inputs from two SNES gamepads and convert it into output of two Sega Genesis gamepads.
There is a Github library that allows Arduino to read Sega Genesis gamepad input: [url removed, login to view]
There is another Github library that allows Arduino to emulate SNES gamepad: [url removed, login to view]
So basically what needs to be done:
- take the 2st library, add support for one more SNES gamepad.
- use the code from the 1st library: remap physical input pins to the data coming from SNES gamepads; add one more Genesis gamepad at this step.
Please note that a genesis gamepad has 9 pins (5 data pins + VCC + GND). SNES gamepad has 5 pins (CLOCK, LATCH, DATA, VCC, GND). That means the entire setup will require 16 data pins.
Note: the converter starts working on each Genesis port only when a corresponding SNES controller is connected. It is possible to detect a connected controller digitally.
Thanks for looking, any questions please ask. I have all the hardware to test your code and debug it.