The control server hosts an RFC-6455 WebSocket on Port 8765. You can use any compliant library or (where supported) the in-built Web Sockets API to connect.
The control server accepts commands as a string with the following structure:
<$command><#?><$args?>
The following $command
s are defined:
- Color
e.g.
color#16711727,5308671,13631743
Set the color of each pixel to the corrosponding 24bit rgb value*. The values will be spread across the leds if the LED count does not match the amount of values. - Brightness
e.g.
brightness#50
Set the LED brightness to the value [0-255] provided. Note: This takes effect on the next use of the Color command. - Clear
e.g.
clear
Sets all LEDs to 0, effectively turning them off.
- (*) To create a 24bit rgb value in most languages:
(red << 8) | (green << 16) | blue