The code initializes the mount to the forward position based on the limit switch attached to the mount. When the button is first pressed, the motor rotates clockwise and the mount is pushed out of the way until the limit switch fixed under the mount is closed. When the button is pressed again, the motor rotates in the counter-clockwise direction for 2.15 seconds, which brings the joystick mount back to the original position. The code is provided below: