Arduino - while 迴圈



while 迴圈會持續無限地迴圈,直到括號 () 內的表示式變為 false。必須有一些東西改變被測試的變數,否則 while 迴圈將永遠不會退出。

while 迴圈語法

while(expression) {
   Block of statements;
}

while 迴圈執行順序

While Loop
arduino_loops.htm
廣告