println(Serial.list());
myPort = new Serial(this, Serial.list()[1], 9600);
The first line lists the serial ports that are available. Is your Arduino really at the second item in the list?
println(Serial.list());
myPort = new Serial(this, Serial.list()[1], 9600);
The first line lists the serial ports that are available. Is your Arduino really at the second item in the list?