void setup(){
size(1024, 768, OPENGL);
//Serial communocation with Arduino
try{
println(Serial.list());
myPort = new Serial(this, Serial.list()[1], 19200);
println("xxxxx");
} catch (PortInUseException e) {
println("mouse_Mode");
mouseMode = true;
}
}
wrting above code like
processing error message is : cannot find a class or type named
and
catch (Exception e) wirting like this
processing error message is :
gnu.io.PortInUseException: Unknown Application
at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354)
at processing.serial.Serial.<init>(Serial.java:139)
at processing.serial.Serial.<init>(Serial.java:105)
at guroro_townFestival_Test_hpd.setup(guroro_townFestival_Test_hpd.java:121)
at processing.core.PApplet.handleDraw(PApplet.java:1571)
at processing.core.PApplet.run(PApplet.java:1496)
at java.lang.Thread.run(Thread.java:613)
What is the problems? help me, thanks. ~
size(1024, 768, OPENGL);
//Serial communocation with Arduino
try{
println(Serial.list());
myPort = new Serial(this, Serial.list()[1], 19200);
println("xxxxx");
} catch (PortInUseException e) {
println("mouse_Mode");
mouseMode = true;
}
}
wrting above code like
processing error message is : cannot find a class or type named
and
catch (Exception e) wirting like this
processing error message is :
gnu.io.PortInUseException: Unknown Application
at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354)
at processing.serial.Serial.<init>(Serial.java:139)
at processing.serial.Serial.<init>(Serial.java:105)
at guroro_townFestival_Test_hpd.setup(guroro_townFestival_Test_hpd.java:121)
at processing.core.PApplet.handleDraw(PApplet.java:1571)
at processing.core.PApplet.run(PApplet.java:1496)
at java.lang.Thread.run(Thread.java:613)
What is the problems? help me, thanks. ~
4