You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gist of it is though that the 1st byte sets the protocol, the 2nd the time in seconds to show the realtime lights before exiting to normal mode. After that, the pixel colors are sent. This is the easiest
in protocol 2 (DRGB) where you just send the RGB values chained. An easy example in HEX would be 02 02 FF 00 00 00 FF 00 00 00 FF which will set the first pixel to red, the second to green and the third to blue.
In Python it could look something like this (I'm not sure if it'd work though)
Activity
Aircoookie commentedon Oct 22, 2018
Hi Andy,
I'm sorry that I can't give you an example that I can guarantee will work, since I'm not proficient in Python.
However, your code is 90% correct. Basically, you'd just need to send a byte array instead of a string.
You can find the full documentation here :https://github.com/Aircoookie/WLED/wiki/UDP-Realtime-Control
The gist of it is though that the 1st byte sets the protocol, the 2nd the time in seconds to show the realtime lights before exiting to normal mode. After that, the pixel colors are sent. This is the easiest
in protocol 2 (DRGB) where you just send the RGB values chained. An easy example in HEX would be
02 02 FF 00 00 00 FF 00 00 00 FFwhich will set the first pixel to red, the second to green and the third to blue.In Python it could look something like this (I'm not sure if it'd work though)
I hope you can get this to work!
greenhulk commentedon Oct 22, 2018
Thanks, that was exactly the right hint!
I just had to adjust the code a bit, now it works!
Merge pull request #63 from Aircoookie/master
Merge pull request wled#63 from MoonModules/revert-48-ES-I2C-usage
Merge pull request wled#63 from Aircoookie/master