一.LuaTask中定时器的介绍 sys.timerStart(fnc,time) fnc为回调函数,time为定时时间,在luatos中sys.timerStart定时器,只会运行一次 sys.timerLoopStart(fnc,time) fnc为回调函数,time为定时时间,在luatos中sys.timerLoopStart定时器,会循环执行 二.实验现象及目的 通过sys.timerStart 实现D3 LED灯的循环点亮 通过 sys.timerLoopStart实现D4 LED灯的循环点亮 三.实验代码
|
只有小组成员才能发言,加入小组>>
【合宙Air780E开发板趣味应用】Air780E开发板方言打麻将
3037 浏览 0 评论
7009 浏览 0 评论
8328 浏览 0 评论
4909 浏览 0 评论
【合宙Air551G双频定位开发板试用体验】Part2:与其他定位模块进行对比
41194 浏览 0 评论