No description
Find a file
2025-09-03 19:47:57 +02:00
.github Remove old code that doesn't work on new versions of Raspbian. 2022-02-05 12:54:12 -05:00
images crop images to the same size 2022-02-10 16:22:00 -05:00
gamepad.c update 2025-09-03 19:47:57 +02:00
gamepad.service update setup script to add gamepad service that loads at startup 2022-02-12 11:40:45 -05:00
Makefile Rename file. Combine ADS1015 with MCP23017 for full gamepad 2022-02-10 14:15:21 -05:00
README.md update readme 2022-02-12 14:15:06 -05:00
setup.sh hide some error messages suring setup 2022-02-17 13:53:33 -05:00

Analog/Digital Gamepad on the Raspberry Pi

The driver got a full rewrite to move from using Python to using C.

With this code, you can create a full gamepad using two I2C modules. The ADS1015 handles analog input for the joystick, and the MCP23017 handles digital input for up to 16 buttons.

Installation is done by copying setup.sh, gamepad.c, Makefile, and gamepad.service to a folder on your Raspberry Pi (or other linux device) and running sudo bash setup.sh. The driver will compile and I2C will get configured, and then the script will ask whether you want to load the driver at startup.

ADS1015 MCP23017

guide on othermod.com