// 2009 mlab.uiah.fi/paja // Understanding for loop // Send valuses of myInts array to your PC int myInts[5] = {2, 1, 0, -1, -2}; void setup(){ Serial.begin(9600); } void loop(){ // variabl i needs to be created because it is used in following for loop statement. int i; /* for(initialization; condition; increment;){ statement(s); } initialization: this is the first setup. condition: statement runs until the condition is true. indrement: if the condition is true, Increment is excuted aster all statements run. */ for (i = 0; i < 5; i = i + 1) { // myIns[0] -> myIns[1] -> myIns[2] ... Serial.println(myInts[i]); } // print empty line Serial.println(); delay(3000); }