a == digitalRead(2) must be a = digitalRead(2) . You also better change the if clause to if(a) to avoid true/HIGH/1 confusions.
確定! 回上一頁