I am experiencing trouble with the Arduino - Processing comunication using the touch sensor..
in particular, i can't figure out the code in processing..
For the arduino code i used the standard one that come with the sensor..
in processing im using this:
import processing.serial.*;
Serial myPort;
void setup(){
println(Serial.list());
myPort = new Serial(this, Serial.list()[0], 115200);
myPort.bufferUntil('\n');
frameRate(2);
}
void draw(){
while (myPort.available() > 0) {
String inString = myPort.readString();
print(inString+" | ");
}
}
am i doing something wrong?
Thanks!!