Hi! I am making a personal project. I need to make a gamepad with Arduino Leonardo (or any 32u4 based board) using the gamepad library so windows and Android recognise it as a gamepad through USB.
The twist is that I need to control the XYZ axes of the thumb joysticks with a MPU6050 gyroscope (like first person view rotation, remember, still being recognised as gamepad by windows.
The gyroscope uses I2C communication with the Leonardo and the joystick modules use analog input straight to pin.
Can I convert the I2C XYZ values to analog somehow?
Or maybe use code de to fake the joystick pin readings so they are detected as analog input somehow? If so, how?
Thanks in advance.