Go to file
Dan Frumin f0c8d47bd9 Use Y axis as buttons 2019-08-05 20:30:38 +02:00
Makefile Use Y axis as buttons 2019-08-05 20:30:38 +02:00
README.org Use Y axis as buttons 2019-08-05 20:30:38 +02:00
joystick.ino Use Y axis as buttons 2019-08-05 20:30:38 +02:00

README.org

What is this?

This is a simple recipe for turning your Arduino into a usable joystick/gamepad.

I am using RobotDyn Joystick shield which makes the whole process trivial.

Compiling

Install the dependencies:

Tweak joystick.ino to suit your needs. In particular, enable or disable using the Y axis as additional buttons.

Then just run make and make upload to flash the board.

Y axis as buttons

Using the Y axis on the joystick as additional buttons is useful for playing e.g. SuperTuxKart, where you only need the joystick for steering.

Wiring

There is nothing to wire just pop the shield onto your board and plug it in!

Debugging

You can use the jstest tool on Linux.