树莓派 raspberrypi安装ubuntu mate系统后操作gpio
1.C语言开发库
1. git clone https://github.com/WiringPi/WiringPi.git
2. cd WiringPi
3. ./build
4. cd gpio
5. gpio readall
2.Python开发库(python3为例)
1. sudo apt install curl
2. curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
3. sudo python3 get-pip.py
4. sudo apt install python3-dev
5. pip3 install wiringpi