mirror of
https://gitee.com/openLuat/LuatOS
synced 2025-08-17 22:18:03 +08:00
add:添加pm下载说明
This commit is contained in:
parent
4aec64d109
commit
0c848424ea
|
@ -8,6 +8,10 @@ log.info("main", PROJECT, VERSION)
|
|||
-- sys库是标配
|
||||
_G.sys = require("sys")
|
||||
|
||||
-- 注意:本demo使用luatools下载!!!
|
||||
-- 注意:本demo使用luatools下载!!!
|
||||
-- 注意:本demo使用luatools下载!!!
|
||||
|
||||
--添加硬狗防止程序卡死
|
||||
wdt.init(15000)--初始化watchdog设置为15s
|
||||
sys.timerLoopStart(wdt.feed, 10000)--10s喂一次狗
|
||||
|
|
|
@ -8,6 +8,10 @@ log.info("main", PROJECT, VERSION)
|
|||
-- sys库是标配
|
||||
_G.sys = require("sys")
|
||||
|
||||
-- 注意:本demo使用luatools下载!!!
|
||||
-- 注意:本demo使用luatools下载!!!
|
||||
-- 注意:本demo使用luatools下载!!!
|
||||
|
||||
sys.taskInit(function()
|
||||
while 1 do
|
||||
sys.wait(3000)
|
||||
|
|
|
@ -6,6 +6,10 @@ VERSION = "1.0.0"
|
|||
-- sys库是标配
|
||||
_G.sys = require("sys")
|
||||
|
||||
-- 注意:本demo使用luatools下载!!!
|
||||
-- 注意:本demo使用luatools下载!!!
|
||||
-- 注意:本demo使用luatools下载!!!
|
||||
|
||||
local NETLED = gpio.setup(19, 1) -- 输出模式,休眠后就熄灭了
|
||||
|
||||
sys.taskInit(function()
|
||||
|
|
Loading…
Reference in New Issue
Block a user