/* 21/07/2021 forLoopv1 Purpose, learn "for loop control" */ //An int is an integer, a Number, any value between -32,768 and 32,767 int q; void setup() { // Serial.begin(9600) starts serial communication. 9600bps bits per second = 1200 characters per second Serial.begin(9600); //Send script name Serial.println("forLoopv1..."); //this will print a blank line Serial.println(" "); } void loop() { //q starts with a value of Zero, the loop continues while q smaller than 20 for(q=0;q<20;q++){ //print the value of q to the serial monitor Serial.print("Val q: "); Serial.println(q); //delay within the for loop delay(100); } //delay outside the for loop delay(1000); }