13.10.2023, 11:28
This will write a random RGBW value 10 times with 1 second delay between each write:
Code:
math.randomseed(os.time())
for i = 1, 10 do
r = math.random(0, 255)
g = math.random(0, 255)
b = math.random(0, 255)
w = math.random(0, 255)
rgbw = r * 0x1000000 + g * 0x10000 + b * 0x100 + w
grp.write('1/1/13', rgbw)
os.sleep(1)
end