FeralAI / GP2040

Gamepad firmware for Raspberry Pi Pico and other RP2040 microcontrollers supporting Nintendo Switch, XInput and DirectInput
https://gp2040.info
MIT License
586 stars 125 forks source link

Rumble support #38

Open Epacik opened 3 years ago

Epacik commented 3 years ago

Rumble support could be a nice addition to a controller made using this project. Especially since, at least in pi pico, there are some unused pins.

FeralAI commented 3 years ago

Agreed this would be a nice feature, and all the RP2040 pins can do PWM. Will need to do some research around this (USB descriptor handling, validating load on RP2040 pins, etc.), but will add it to the feature project list.

Infer4Y commented 2 years ago

I was looking at https://github.com/dmadison/ArduinoXInput/blob/master/src/XInput.h#L54-L57 https://github.com/dmadison/ArduinoXInput/blob/master/src/XInput.cpp#L466-L469

I hope this might help?