0 votes
by (160 points)
How do you write a while loop in Arduino?

1 Answer

0 votes
by (1.4k points)
A while loop 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. This could be in your code, such as an incremented variable, or an external condition, such as testing a sensor.

Related questions

0 votes
1 answer
asked Mar 3, 2021 by whileloop (160 points)
0 votes
1 answer
0 votes
1 answer
asked Jul 1, 2021 by arduino (3.7k points)
0 votes
1 answer
asked Mar 3, 2021 by voidloop (120 points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
...