rs485-lpc/lpc_serial_lxt.lua

10 lines
188 B
Lua

local tv = get_trigger_variable(1)
if tv == nil then return end
local v = tv.integer
if v == nil then return end
if v < 0 then v = 0 end
if v > 200000 then v = 200000 end
lux_target = v