To visualize the interaction between Arduino and p5.js, I created a game of Fruit Ninja. For the analog input, I used a joystick, which is essentially two combined potentiometers, one for the x-axis, and one for the y-axis. The joystick's x and y values are read through the p5.serial controller and are mapped to the knife you use to chop the fruit in game to increase your score. But be careful! When you hit a bomb, you lose a life, which is communicated from p5.js to the Arduino board to turn off one of the LEDs representing the number of lives you have. When you run out of lives, the game is over.