the function delay(int) does not exist !!!
in
Programming Questions
•
1 year ago
Hi,
I use the Processing 2.0a4, and I got the error from the delay () function with this code:
import processing.serial.*;
String [] val = new String [10];
Serial port;
void setup (){
println(Serial.list());
port = new Serial (this, Serial.list () [4], 115200);
}
void draw () {
if (key == 'H'){
port.write('H');
} else {
port.write ('L');
}
for (int i = 0; i < val.length-1; i++){
val [i] = port.readString();
print (val[i]);
}
println ("**********************");
port.clear();
delay (100);
}
the console says:
The function delay(int) does not exist.
andrea
I use the Processing 2.0a4, and I got the error from the delay () function with this code:
import processing.serial.*;
String [] val = new String [10];
Serial port;
void setup (){
println(Serial.list());
port = new Serial (this, Serial.list () [4], 115200);
}
void draw () {
if (key == 'H'){
port.write('H');
} else {
port.write ('L');
}
for (int i = 0; i < val.length-1; i++){
val [i] = port.readString();
print (val[i]);
}
println ("**********************");
port.clear();
delay (100);
}
the console says:
The function delay(int) does not exist.
andrea
1