1
0
mirror of https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter synced 2025-02-20 04:51:46 -05:00

46 lines
1.1 KiB
Markdown
Raw Normal View History

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