A small application that reads input from your linux joystick api, e.g. /dev/input/js0
and pipes it into the SPI bus on the Raspberry PI.
It is to be used with the sister project xpad-avr to redirect arbitrary joystick input into the original Xbox.
The project is licensed under the GNU GPL v2.
You need a Raspberry PI or other SPI-capable linux computer + an atmega32u4.
-
Install the prerequisites:
sudo apt install git cmake gcc g++ build-essential
-
Checkout and build the project:
git clone https://github.com/ripdajacker/hidjoy2spi.git cd hidjoy2spi cmake . make
-
Wire the SPI bus of the Raspberry to the SPI pins on your atmega32u4 like seen here.
-
Connect an Xbox One or wired 360 gamepad to the Raspberry (you will need an OTG adapter if it is a Raspberry Pi Zero).
-
Flash the newest
XpadEmu.hex
from the xpad-avr project (Windows users: use AVRDUDESS, Linux/Mac users can useavrdude
). -
Run the hid2joy application like so:
./hid_spi_redirect /dev/input/js0 /dev/spidev0.1
-
Your inputs are now converted.