Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Arduino - infinite loop



It is the loop having no terminating condition, so the loop becomes infinite.

infinite loop Syntax

Using for loop

for (;;) {
   // statement block
}

Using while loop

while(1) {
   // statement block
}

Using dowhile loop

do {
   Block of statements;
} 
while(1);
arduino_loops.htm
Advertisements