Press the Project tab from the top menu bar of EZ-Builder
Press Add Control from the button ribbon bar of EZ-Builder
icon to add the control to your project
The Neopixel Blaster is a compact ezbit which controls up to 640 neo pixels on 8 different output ports and available in the EZ-Robot store. The compact footprint is designed to fit snug in a female ez-clip. Using this controller means you can have 80 neo pixels per output port (8 * 80 = 640 neopixels). Once this control is added to your project, select the digital port that the controller is connected to. Use the available ControlCommand() from the EZ-Script Cheat Sheet to set colors to the neo pixels.
There are 8 output ports on the EZ-Robot Neo Pixel Controller. Each of the ports can address 80 neo pixels.
The first output port of the controller (port 0) has an onboard RGB led. This means that any neo pixels connected to port 0 must take in count that the first led on the address bus is the onboard controller. All other ports use the first neo pixel as the first device address on the bus.
This example sets LED on the NeoPixel Controller to the color purple.
This example assumes there are 3 NeoPixels (including the onboard NeoPixel) connected to port 0. It will change each LED to a different color.
ControlCommand("NeoPixel", DefineSize, 0, 3)
ControlCommand("NeoPixel", Set, 0, 0, 0, 0, 255) # blue onboard LED
ControlCommand("NeoPixel", Set, 0, 1, 0, 255, 0) # green second LED
ControlCommand("NeoPixel", Set, 0, 2, 255, 0, 0) # red third LED
ControlCommand("NeoPixel", Update, 0)
This example will scroll through the colors in 3 phases with a 100ms delay. It uses the port 1 on the NeoPixel Controller.