Since our project will need to send values created in the joystick to the processing, it is necessary for us to know how to transfer multiple values from Arduino to Processing, I attended the serial communication workshop. During the recitation, we use two potentiometers to control the movement of an ellipse and the button to control the advent of a rectangular. Although we used potentiometers instead of the joystick during the recitation, the essence of transferring values is to the same. Important requirements include: finding the correct ports, define the number of the values that are to be transferred and make sure the titles of the values are the same.
Circuit
Code
Video