I would like a piece of code for Arduino Uno that will take inputs from two Sega Genesis gamepads and convert it into output of two Super Nintendo 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 1st library, add support for one more Genesis gamepad.
- use the code from the 2nd library: remap physical input pins to the data coming from Genesis gamepads; add one more SNES 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 SNES port only when a corresponding Genesis controller is connected. It is possible to detect a connected controller digitally (operator SC_CTL_ON in the example code).
Thanks for looking, any questions please ask. I have all the hardware to test your code and debug it.
Décerné à :
Dear sir I have more than 10 years experience in electronic design, please check my profile, also please message me so that we can discuss Best regards