repo.or.cz
/
LuatOS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add: 添加air780epvh的定位演示代码,初始化版本
[LuatOS.git]
/
demo
/
ir
/
main.lua
blob
610b7707d3b19b56e503a84ce652db104caff56b
1
2
-- LuaTools需要PROJECT和VERSION这两个信息
3
PROJECT
=
"irdemo"
4
VERSION
=
"1.0.0"
5
6
-- sys库是标配
7
sys
=
require
(
"sys"
)
8
9
10
sys
.
taskInit
(
function
()
11
while true do
12
ir
.
sendNEC
(
0
,
0x11
,
0x22
)
13
sys
.
wait
(
1000
)
14
end
15
16
end
)
17
18
-- 用户代码已结束---------------------------------------------
19
-- 结尾总是这一句
20
sys
.
run
()
21
-- sys.run()之后后面不要加任何语句!!!!!