gdsports / gamepad_tinyusb

USB Gamepad/Joystick example using Adafruit TinyUSB
MIT License
8 stars 1 forks source link

How to get it working with rp2040? #1

Open milador opened 3 years ago

milador commented 3 years ago

I tried modifying it to work in rp2040 and Arduino Nano RP2040 but no luck so far.

I managed to make it show up as eight buttons and dual joystick with minor changes, but it doesn't trigger any buttons or move joystick.

Any idea? Thanks

milador commented 3 years ago

@gdsports I compiled xac_joystick_pipico and it worked with Arduino Nano RP2040 connect as well. Now hoping to get it working through Arduino or CircuitPython.

vishesh-varma commented 2 years ago

what changes did you make to try to get it to run for RP2040? I'm trying not to have to switch to Mbed or Python, but I neither see a working Joystick library nor do I know what exactly that requires changing

milador commented 2 years ago

I used c code to get it working. You just compile and run the code in other repository. Now, you don't need to do this with circuitpython 7 as you can define the descriptor in separate py file which runs at first. Here is the process to get it working: https://github.com/milador/CircuitPython_XAC_Gamepad