但要注意,程式碼中要更改pinMode(buttonPin,INPUT_PULLUP),告訴Arduino這個pin腳要啟用內建上拉電阻。 pinMode(buttonPin, INPUT_PULLUP);.
確定! 回上一頁