docs-content
docs-content copied to clipboard
Analog pins incorrect on Joystick Mouse Example
Either the schematic or the code is incorrect on https://docs.arduino.cc/built-in-examples/usb/JoystickMouseControl.
Schematic says A0 = vertical, A1 = horizontal. Code says xAxis = A0, yAxis = A1
x is typically horizontal. y is typically vertical. (Unless you're talking about household radiators, which for some reason don't follow this Cartesian convention.)
I would fix it myself, but I don't see how to edit the code.
Hope this helps, or at least gets a giggle.