1
0
mirror of https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter synced 2024-12-02 13:52:19 -05:00
Arduino-USB-HID-RetroJoysti.../X-Arcade/README.md

46 lines
1.1 KiB
Markdown
Raw Normal View History

2017-04-17 10:45:00 -04:00
# Arduino_X-Arcade_USB-adapter
2019-04-16 03:14:25 -04:00
## Keyboard
https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter/tree/master/PS2_Soarer_Converter
2019-04-16 03:14:07 -04:00
## 2 Joysticks
2017-04-17 10:45:00 -04:00
"Old" PS/2 -version of X-arcade.
2017-04-17 10:49:34 -04:00
![X-Arcade](https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter/raw/master/Images/x-arcade-dual-joystick.jpg)
2017-04-17 10:45:00 -04:00
```
2017-09-25 12:02:46 -04:00
D9-connector -> Arduino Pro Micro
2019-04-16 06:42:37 -04:00
6 (data) -> 3 (PD0)
5 (clk) -> 2 (PD1)
2017-09-25 14:25:17 -04:00
1 (5V) -> Vcc
2 (PS/2-mode) -> Vcc
9 (5V) -> Vcc
2017-04-17 10:52:21 -04:00
Shield -> GND
2017-09-25 12:02:46 -04:00
Or
2017-09-25 14:26:06 -04:00
PS/2-connector -> Arduino Pro Micro
2019-04-16 06:43:00 -04:00
Data (green or blue) -> 3 (PD0)
CLK (white or purple) -> 2 (PD1)
2017-09-25 12:02:46 -04:00
5V (red) -> 5V
GND (black) -> GND
2017-04-17 10:45:00 -04:00
```
2021-11-04 18:53:47 -04:00
### Library
2017-04-17 10:45:00 -04:00
PS2KeyRaw
Arduino Pro Micro (select Arduino Leonardo from Arduino IDE).
PS/2 keyboard not needed.
2017-04-18 11:30:42 -04:00
Takes only about 10mA.
2019-04-16 03:14:07 -04:00
2019-04-16 03:14:25 -04:00
2021-11-04 18:53:47 -04:00
## Linux: keyboard -> joystick
- https://github.com/dmadison/ArduinoXInput
- https://superuser.com/questions/837464/treat-usb-keyboard-as-gamepad
2021-11-04 18:59:17 -04:00
- https://wiki.archlinux.org/title/Gamepad#Mimic_Xbox_360_controller_with_other_controllers
2021-11-04 19:21:46 -04:00
## RetroPie / Keyboard
- https://retropie.org.uk/forum/topic/8987/guide-setting-up-a-retropie-controls-using-ipac2-controller-extensive-tutorial-preconfigured-files