目前打算由潛入深慢慢學習RaspBerry Pi, 所以先由最容易下手的Python進入樹莓派的世界 首先要使用 GPIO 需要利用RPI.GPIO package想當然爾必須先安裝 所以先執行下列命令進行安裝 sudo apt-get install rpi.gpio 則可以使用的IO可以透過下列命令檢查, 可以得到IO相關狀態 gpio readall 最後附上GPIO H/L的簡易程式, 相關說明可以超聯結這裡 RPi.GPIO module basics import RPi.GPIO…