上次用Python做GPIO控制,個人認為用於簡單電路測試或控制足夠。但是,未來有一些計劃會用到interrupt,用C/C++開發應該會是主要做法。
WiringBP是由LeMaker改寫Drogon開發的Wiring Pi:
root@bpro:/home/regis# git clone https://github.com/LeMaker/WiringBP -b bananapro
root@bpro:/home/regis# chmod +x ./build
root@bpro:/home/regis# sudo ./build
安裝好之後,查看GPIO的status:
root@bpro:/home/regis/WiringBP/examples# gpio readall
root@bpro:/home/regis/WiringBP/examples# gpio readall



