15.03.2022, 09:09
Try this:
Code:
step = 10
delay = 0.2
addrs = { '20/3/0', '20/3/1', '20/3/2', '20/3/3' }
for i = 1, #addrs + 1 do
curr = addrs[ i ]
prev = addrs[ i - 1 ]
for value = 0, 100, step do
if curr then
grp.write(curr, value, dt.scale)
end
if prev then
grp.write(prev, 100 - value, dt.scale)
end
os.sleep(delay)
end
end