void setup and void loop in arduino code example
Example 1: how to setup arduino code
void setup(){ // Default starting code,runs once when arduino recieves power.
// insert code
}
void loop(){ // runs continuously in a loop.
// insert code
}
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);
}