PiPyPS2
Circuitpython implementation of a PlayStation 2 controller adapter for Raspberry pi/ pi pico
This project also includes a Circuitpython port of Bill Porter's PS2X library in the gamepad_with_analog_and_rumble version
Circuit
What is it
- This is a python implementation of the interpreters used to read the input given by playstation controllers and use them accordingly as keyboard and mouse inputs.
Installation - in order to run the sample code:
After installing Circuitpython on your Device (Pico in the case of the example)
How to use (Keyboard mode):
- Open game of your choice and in controller remapping press the desired ps2 key while remapping. Note that for now the analog joysticks do not work and will only move the mouse pointer
How to use (Controller mode):
- After setting up the controller, go to Gamepad tester and try out all the buttons and see if they work.
- Open game of your choice and in controller remapping press the desired ps2 key while remapping, if any tweaking is required.
Note:
- usb_hid.gamepad is deprecated and will probably not work in the future. Also rumble will not work since the hid library does not support it.
Credits:
- Credits to Vanepp for the Ps2 controller wiring image
- Bill Porter's PS2X library