arduino setup loop code example
Example 1: arduino for loop
for (initialization; condition; increment) {
// statement(s);
}
===
Example:
void loop() {
for (int i = 0; i <= 255; i++) {
analogWrite(PWMpin, i);
delay(10);
}
}
Example 2: void setup
// Type this command at the top of each Java program.
void setup(){
// You typically use size(); as well to set the size of your canvas.
size(500,500);
}