DianCiChang/UI/Project/main.lua

37 lines
633 B
Lua
Raw Normal View History

2024-11-18 10:20:24 +08:00
_ENCRYPT_=0 --LUA<EFBFBD>ű<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͷ<EFBFBD><CDB6><EFBFBD>
VT_LW = 1 --<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ
VT_RW = 2 --FLASH<53>
VT_0x = 10 --<2D><>Ȧ
VT_1x = 11 --<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
VT_3x = 12 --<2D><><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD>
VT_4x = 13 --<2D><><EFBFBD>ּĴ<D6BC><C4B4><EFBFBD>
function on_init()
local value = get_uint16(VT_RW, 0x122)
if value ==0
then
local value1 = get_uint16(VT_LW, 0x122)
set_uint16(VT_RW,0x122, value1)
else
set_uint16(VT_LW,0x122, value)
end
end
function on_run(screen)
end
function on_update(slave,vtype,addr)
if addr==0x122 and vtype ==1
then
local value1 = get_uint16(VT_LW, 0x122)
set_uint16(VT_RW,0x122, value1)
end
end
function on_draw(screen_id,control_id)
end