【arduino】2_開關控制的LED. ... int buttonState = 0;//存放獲取的開關狀態. void setup() { ... 如果斷開開關時,LED被點亮,閉合開關時,LED熄滅。
確定! 回上一頁