Arduino - while loop


Advertisements

while loops will loop continuously, and infinitely, until the expression inside the parenthesis, () becomes false. Something must change the tested variable, or the while loop will never exit.

while loop Syntax

while(expression) {
   Block of statements;
}

while loop Execution Sequence

While Loop
arduino_loops.htm
Advertisements