1 Star 1 Fork 2

晨旭 / LuatOS Hand by Hand

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
main.lua 513 Bytes
Copy Edit Raw Blame History
晨旭 authored 2022-01-24 16:28 . update: 默认改成gb2312编码
PROJECT = "luatos_hand_by_hand"
VERSION = "1.0.0"
log.info(PROJECT, VERSION)
sys = require "sys"
--添加硬狗防止程序卡死,在支持的设备上启用这个功能
if wdt then
wdt.init(15000)--初始化watchdog设置为15s
sys.timerLoopStart(wdt.feed, 10000)--10s喂一次狗
end
--量产的时候要用这句话
log.setLevel("ERROR")
tools = require("tools")
--加载兼容层代码
port = require("port")
--格式显示
show = require("show")
--页面库
page = require("page")
--加载第一个页面
page.load(#page.pages,1)
--page.load(3,3)
sys.run()
Lua
1
https://gitee.com/chenxuuu/LuatOS-Hand-by-Hand.git
git@gitee.com:chenxuuu/LuatOS-Hand-by-Hand.git
chenxuuu
LuatOS-Hand-by-Hand
LuatOS Hand by Hand
master

Search