STM32Duino library used to read PlayStation 1 and PlayStation 2 controllers, modified from https://github.com/madsci1016/Arduino-PS2X I just made this because I needed my PS2 controller to work as a native xinput device, with vibration support.
Core used: https://github.com/rogerclarkmelbourne/Arduino_STM32
USB Library used: https://github.com/arpruss/USBComposite_stm32f1
Additional references:
- PS2X Library for STM32Duino found at: https://chowdera.com/2022/04/202204080627299092.html
- Archived at: https://web.archive.org/web/20220519035526/https://chowdera.com/2022/04/202204080627299092.html
- https://chowdera.com/2022/04/202204080604524719.html
- Archived at: https://web.archive.org/web/20220519041333/https://chowdera.com/2022/04/202204080604524719.html
- https://blog.csdn.net/weixin_43336281/article/details/88628049
- Archived at: https://web.archive.org/web/20220519041544/https://blog.csdn.net/weixin_43336281/article/details/88628049
- https://blog.csdn.net/qq_38288618/article/details/107208606
- Archived at: https://web.archive.org/web/20220519041846/https://blog.csdn.net/qq_38288618/article/details/107208606
The library found at the sites linked above had to be modified a bit to work with slower timings, previously it was going too fast, and causing the controller to spit random data.
Please, don't use this repository as reference for anything, I don't know what I'm doing, refer to the links above if you ever need any reference.