while (digitalRead(button) == HIGH){ i++; delay(100); if(i>=30){. ... 設一個全域變數初i 初始值是0 用迴圈設計按著時每秒i+1 if i>=3 燈泡亮.
確定! 回上一頁