expecting EOF, found 'myPort'
in
Programming Questions
•
10 months ago
Hy all, i just tried to write a smal script
to comunicate with my arduino, but ther are some errors:
the first wars i cant connect to my arduino: fixed, i forgot to set up the serial device
now the second:
Error: "expecting EOF, found 'myPort'"
now the code:
import processing.serial.* ;
Serial myPort;
myPort = new Serial(this, "COM2", 9600);
void setup() {
size(425, 175);
background(200);
println(Serial.list());
}
I hope you could help me..
link to full code as ZIP
1