MikroElektronika WS2812 Element
The WS2812 element is used to create an array of colors on the hardware’s LEDs. This element is for using a click board with the MikroElektronika WS2812 LED array compatible with the NXP Rapid IoT hardware.
The WS2812 is a sensor element that can be imported into the Element Toolbox through the Add Elementbutton located in the toolbox from the Embedded tab.
The following properties can be changed for the WS2812 element:
The name of the element.
The hardware’s GPIO pin the element is connected to.
Number of Rows
The number of rows the LEDs span on the click board.
Number of Columns
The number of columns the LEDs span on the click board.
The following triggers are available to execute events from within the WS2812 element:
Execute an event when the source element connected to the LED array triggers.
The following abilities are available for the WS2812 element when its source element triggers:
Trigger the element(s) that follow the WS2812 element.
Set All LEDs to Red
Set all LEDs within the array to red.
Set All LEDs to Green
Set all LEDs within the array to green.
Set All LEDs to Blue
Set all LEDs within the array to blue.
Set All LEDs to White
Set all LEDs within the array to white.
Blink All LEDs Red
Blink all LEDs red.
Blink All LEDs Blue
Blink all LEDs blue.
Blink All LEDs Green
Blink all LEDs green.
Blink All LEDs White
Blink all LEDs white.
Toggle All LEDs Red
Toggle all LEDs within the array to red.
Toggle All LEDs Green
Toggle all LEDs within the array to green.
Toggle All LEDs Blue
Toggle all LEDs within the array to blue.
Toggle All LEDs White
Toggle all LEDs within the array to white.
Set All to Color
Set the color of all LEDs within the array.
Fade All Through Rainbow
Set a rainbow fade of colors across all LEDs within the array.
Turn All Off
Turn off all LEDs within the array.