The code is same as A2 but the debugging code is modified to send RGB data through the serial port, I use this information to change the color of the ellipse and show debug information on the browser.
Reflection: Can use the joystick movement to make an interactive widget.
References: https://github.com/vanevery/p5.serialport/tree/master/examples