然後在loop()裡,以digitalRead()讀取腳位2的狀態,會讀到LOW或HIGH,代表開關的狀態。並輸出到序列埠。 開啟Tools-Serial Monitor可看到執行結果,開關 ...
確定! 回上一頁