第一步:创建并打开gpio.c文件
nano gpio.c
第二步:编写程序
#include<stdio.h>
#include<wiringPi.h> //导入wiringPi.h库
#define GPIO0 0 //定义GPIO0为引脚为wPi的0号引脚,对应GPIO0
int main()
{
printf("This is an example of controlling the high and low levels of GPIO
pin output\n");
wiringPiSetup()

最低0.47元/天 解锁文章
2287

被折叠的 条评论
为什么被折叠?



