int potX=A0;Its giving me an error while declaring the serialEvent as "unexpected token:void". processing.app.SketchException: unexpected token: void at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:326) at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:197) at processing.mode.java.JavaBuild.build(JavaBuild.java:156) at processing.mode.java.JavaBuild.build(JavaBuild.java:135) at processing.mode.java.JavaMode.handleRun(JavaMode.java:176) at processing.mode.java.JavaEditor$20.run(JavaEditor.java:481) at java.lang.Thread.run(Thread.java:662) the arduino code is
int potY=A1;
int valX,valY;
void setup()
{ Serial.begin(9600);
}
void loop()
{
valX=analogRead(potX);
valY=analogRead(potY);
Serial.print(valX,DEC);
Serial.print(",");
Serial.print(valY,DEC);
Serial.print("|");
}
wats the error?I am still not able to figure out...Please help!!!