How to waste time in Processing? (delay with Arduino)

You can make a timer using millis()

draw () runs on and on but the next step is only done
when if(millis()-timer > 5000) {

and say int timer = millis(); to start the timer

1 Like