1
0
mirror of https://gitee.com/openLuat/LuatOS synced 2025-08-17 22:18:03 +08:00

add:添加pm下载说明

This commit is contained in:
Dozingfiretruck 2022-07-11 17:36:08 +08:00
parent 4aec64d109
commit 0c848424ea
3 changed files with 12 additions and 0 deletions

View File

@ -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喂一次狗

View File

@ -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)

View File

@ -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()