I need to connect and disconnect the serial port while my draw() loop is running.
I can connect once (in setup()) using:
myPort =
new Serial (this, Serial.list()[0], 9600);And I can disconnect (in draw()) using:
Serial(close);
How can I re-connect again in draw()?