This week we worked on serial communication between the Arduino and p5. To start we listed the ports and checked the Arduino serial port.
this is a p5 sketch that gets the input from the potentiometer that is connected to the Arduino, and the values of the graph changes on the sketch:
when the mouse is dragged on the p5 sketch, the LED light changes:
here, when the keys are pressed the LED light changes:
This is the serial input to p5.js through the Arduino Lab