Logic Machine Forum
Not sending 6byte RGBW value ! - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Not sending 6byte RGBW value ! (/showthread.php?tid=6007)



Not sending 6byte RGBW value ! - phongvucba - 27.05.2025

Hi everyone! 
I am having trouble with sending 6byte RGBW value. I can't send value to it, for example I want to send value #EB00EB to address 1/7/0 , but it gives error.
------------
grp.write('1/7/0', #EB00EB)
------------


RE: Not sending 6byte RGBW value ! - admin - 27.05.2025

You must pass a table as the value for 6-byte RGBW. Each color is in 0..255 range.
Code:
grp.write('1/7/0', {
  red = 255,
  blue = 0,
  green = 127,
  white = 127
})

Standard RGB/RGBW types use numeric values which can be specified in hexadecimal form as 0xRRGGBB or 0xRRGGBBWW respectively.


RE: Not sending 6byte RGBW value ! - phongvucba - 28.05.2025

Thanks Admin. so much !