按下開關時,左右兩邊會接在一起,就會讀到HIGH高電壓。 程式碼如下: void setup(){ Serial.begin(115200); pinMode(2, INPUT); } void loop ...
確定! 回上一頁