Page 1 of 1
Two controllers in one Leonardo
Posted: Sun Jul 23, 2017 9:44 pm
by Roller Toaster
Is there a way to make one of these output as two USB controllers to a raspberry pi? I was thinking of hooking up a couple of joysticks and buttons and making a bartop arcade, but I'd like to only use one Leonardo Pro Micro because it has enough pins.
Re: Two controllers in one Leonardo
Posted: Sun Jul 23, 2017 9:54 pm
by RetroRocket
I imagine you could run the input as keyboard buttons and map those alphanumeric values to button controls. Someone more experienced with programming should jump in here, but you could program say WASD controls and Numpad controls in arduino, then in the emulator settings, set those groups of inputs as player one and player two.
Re: Two controllers in one Leonardo
Posted: Sun Jul 23, 2017 11:23 pm
by moooarcuuuus
Roller Toaster wrote: ↑Sun Jul 23, 2017 9:44 pm
Is there a way to make one of these output as two USB controllers to a raspberry pi? I was thinking of hooking up a couple of joysticks and buttons and making a bartop arcade, but I'd like to only use one Leonardo Pro Micro because it has enough pins.
It works.
https://www.arduino.cc/en/Reference/MouseKeyboard