pinMode(13, OUTPUT); // LED,平常點亮,按下開關則熄滅 pinMode(5, INPUT); // 接到開關 digitalWrite(5, HIGH); // 開啟上拉電阻 } void loop(){
確定! 回上一頁