由程式碼可以得知,GPIO2 設定為Output 和GPIO17 為Input,並啟動Pull-up 電阻。Pin 物件的的操作也很簡單, p2.value(1) 就是設定為HIGH準位, ...
確定! 回上一頁