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 ElementAdd Elementbutton located in the toolbox from Embedded View.

Element Icon
MikroElektronika WS2812 Element

Properties

The following properties can be changed for the WS2812 element:

Name

The name of the element.

GPIO Pin

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.

Triggers

The following triggers are available to execute events from within the WS2812 element:

Triggered

Execute an event when the source element connected to the LED array triggers.

Abilities

The following abilities are available for the WS2812 element when its source element triggers:

Trigger

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 blue.

Blink all LEDs green.

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.