The ESP8266 controller is preprogrammed with the ability to connect to your local wifi network and be remotely controlled.
Initially, the controller does not know how to connect to your network, so it sets up its own network. Here is how to set it up:
Controlling via http
You can control the LEDs via http by sending textual commands to controller. The format looks like this:
Controlling vs UDP
If you want realtime control of the LEDs, http may have too much latency, which may result in unexpected pauses. The controller also supports communicating through UDP.
To connect via UDP, use the same IP address and pass commands directly. The internal controller code runs at 100 Hz; if you drive with UDP messages at 60 Hz everything should just work great.
All commands are three letters long, followed by another character (the examples use an underscore (“_”), followed by numeric parameters.
The following commands are supported:
Alternate between two colors.
r1, g1, b1: the rgb values (0,255) for the first color (0-255)
r2, b2, b2: the rgb values for the second color
time: the time for each color
Blend from the current color to a specified color
r, g, b: the rgb values (0,255) for the new color
time: the time for the blend
Rotate through a bunch of different colors.
speed: the speed of the rotate
brightness: The brightness of the colors
decay: the speed of the decay
min: the minimum pause before the next flash
max: the maximum pause before the next flash
Full control is used to control the color of all the leds directly.
chunk: the number of leds to apply each set of data to.
data-bytes: colors express as two digit HEX values in the format RRGGBB
Each color in data-bytes will apply to 11 LEDs. The data-bytes contain 3 color values:
000044 – a blue value
440000 – a red value
000044 – a green value
Save the current animation so that it will use that animation when rebooting.
Set pixel count
Set the number of pixels that the controller will use. This will result in a reboot of the controller.
count: the number of pixels