17Views0Replies

Author Options:

Need help for Processing code Answered

Hello everyone! I would like to change the sketch <ClickAndCircleExpend> into Arduino-Processing process interchange to make circles Expend/Contract. The way Arduino sketch works (Increment/Decrement during all the way):

int val;

void setup(){

Serial.begin(9600);

}

void loop(){ for(int i=0; i<=1023; i++)

{ i=i+1;

val=i;

Serial.println(val);

delay(50); }

for(int i=1024; i>=1; i--)

{ i=i-1;

val=i;

Serial.println(val);

delay(50);

}

}

Discussions