Serial ports can only be controlled by one program at a time.

Questions:

  1. Why we only need to change the visibility value into integers? But not X value and Y value?

截屏2021-10-16 下午11.24.59.png

  1. I got an undefined result in the serial input to p5js lab, and I am sure that I chose the correct port name and I opened the p5 serial port, also I selected the port from the p5 serial port. But if I only opened the p5 serial port and did not select the specific port in it, it worked. Why does it happen?

Don't open the port from p5 Serial port, just leave it open

截屏2021-10-17 下午6.58.59.png

截屏2021-10-17 下午7.10.53.png

  1. For lab 3, I also cannot use p5js to control the LED light

Introduction of serial

截屏2021-10-16 下午8.57.41.png