Skip to content

ripdajacker/hidjoy2spi

Repository files navigation

hidjoy2spi

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.

Step by step

You need a Raspberry PI or other SPI-capable linux computer + an atmega32u4.

  1. Install the prerequisites:

    sudo apt install git cmake gcc g++ build-essential

  2. Checkout and build the project:

    git clone https://github.com/ripdajacker/hidjoy2spi.git cd hidjoy2spi cmake . make

  3. Wire the SPI bus of the Raspberry to the SPI pins on your atmega32u4 like seen here.

  4. Connect an Xbox One or wired 360 gamepad to the Raspberry (you will need an OTG adapter if it is a Raspberry Pi Zero).

  5. Flash the newest XpadEmu.hex from the xpad-avr project (Windows users: use AVRDUDESS, Linux/Mac users can use avrdude).

  6. Run the hid2joy application like so:

    ./hid_spi_redirect /dev/input/js0 /dev/spidev0.1

  7. Your inputs are now converted.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published