1 Star 0 Fork 1

qingsonggege / openwrt_mt7688_ctest

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pwmclose.c 356 Bytes
一键复制 编辑 原始数据 按行查看 历史
Midas 提交于 2016-12-04 08:37 . first commit,put all files to git
#include "./include/mraa.h"
#include <stdio.h>
int main(int argc,char *argv[])
{
int pin;
if (argc <2)
printf("please enter GPIO number(18,19,20,21)!\n");
pin=atoi(argv[1]);
mraa_result_t res;
mraa_pwm_context pwm;
printf("pin=%d\n",pin);
pwm=mraa_pwm_init(pin);
res=mraa_pwm_close(pwm);
printf("res=%x \n",res);
return 0;
}
1
https://gitee.com/qingsonggege/openwrt_mt7688_ctest.git
git@gitee.com:qingsonggege/openwrt_mt7688_ctest.git
qingsonggege
openwrt_mt7688_ctest
openwrt_mt7688_ctest
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891