void loop(){. val = digitalRead(BUTTON);//讀取輸入數值並且存儲. if((val==HIGH)&&(old_val==LOW))//檢查按鈕的變化情況. {. printState();. }.
確定! 回上一頁