Arduino ® Code
One of the great tools projects in Arduino is this joystick with X and Y axis control.
2-Axis YX Joystick RJXA-19 for Arduino