https://github.com/MickGyver/DaemonBite ... rollersUSB
The projects README uses a micro USB Arduino Pro Micro and micro USB cable but there are USB C versions of the Pro Micro such as the ones made by Diymore which also work fine with the same sketch if you prefer having a reversible connector or if you prefer to use USB C cables because you have more to hand, which is likely the case.
The adapter is simple to make. All you need apart from a Arduino Pro Micro (I used a Diymore Pro Micro which cost me about £10) is a SNES controller extension cable (~£5) and 5x wires with female dupont connectors to solder onto the ends of the extension cable after removing the extension cables male end and stripping its wires. Alternately you could crimp some dupont connectors onto the end of the SNES cable wires if you have a suitable crimp tool or just solder the wires straight to the arduino's PCB if thats more your style.
To flash the code (Sketch) onto the device clone its repo then plug the Micro Pro into your PC with a USB cable, open SNESControllersUSB.ino in Arduino IDE, Verify/Compile and finally Upload the Sketch to the device. Under Linux your SNES controller will become available as /dev/input/js0 once connected. You can test it using jstest-gtk.
Note that to run Arduino IDE under Linux you either have to run it as root or add your user to the dialout group.
If you want to use the daemonbite with cuzebox or any other SDL2 app that doesn't have its own controller config, you need to create a file called gamecontrollerdb.txt in the same dir as your cuzebox binary containing:
Code: Select all
03000000412300003780000001010000,DaemonBite SNES/NES controller USB adapter,platform:Linux,crc:9027,a:b0,b:b1,x:b2,y:b3,back:b6,start:b7,leftshoulder:b4,rightshoulder:b5,dpup:-a1,dpdown:+a1,dpleft:-a0,dpright:+a0,