树莓派使用c语言控制管脚--wiringPi安装

树莓派先安装git,然后安装库

  • 命令如下

git clone https://github.com/WiringPi/WiringPi
cd wiringPi
./build

  • 测试--输出管脚信息

gpio readall

原文地址:https://www.cnblogs.com/guguobao/p/9672203.html