Shiji APA102 Element
The APA102 element is used to drive strips or matrices of LEDs. This element is for using the Shiji APA102 RGB LED strip.
The APA102 is an element that can be imported into the Element Toolbox through the Add Element button located in the toolbox from the Embedded tab.
Properties
The following properties can be changed for the APA102 element:
Name
The name of the element.
SPI Driver Instance
SPI Driver instance to use.
LED Rows
Number of rows in the LED matrix. For a strip, this will be 1.
LED Columns
Number of columns in the LED matrix. For a strip, this will be the number of LEDs.
Default Brightness
Default brightness percentage from 0 to 100.
Triggers
The following triggers are available to execute events from within the APA102 element:
All LEDs On (White)
Execute an event when all LEDs are turned on with the color white.
All LEDs On (Red)
Execute an event when all LEDs are turned on with the color red.
All LEDs On (Green)
Execute an event when all LEDs are turned on with the color green.
All LEDs On (Blue)
Execute an event when all LEDs are turned on with the color blue.
All LEDs On (Custom Color)
Execute an event when all LEDs are turned on with a custom color.
All LEDs Off
Execute an event when all LEDs are turned off.
Blink All LEDs (White)
Execute an event when all LEDs are blinked with the color white.
Blink All LEDs (Red)
Execute an event when all LEDs are blinked with the color red.
Blink All LEDs (Green)
Execute an event when all LEDs are blinked with the color green.
Blink All LEDs (Blue)
Execute an event when all LEDs are blinked with the color blue.
Blink All LEDs (Custom Color)
Execute an event when all LEDs are blinked with a custom color.
Set Brightness
Execute an event when the brightness level is set.
Abilities
The following abilities are available for the APA102 element when its source element triggers:
Trigger
Trigger the element(s) that follow the APA102 element.
All LEDs On (White)
Turn all LEDs on with the color white.
All LEDs On (Red)
Turn all LEDs on with the color red.
All LEDs On (Green)
Turn all LEDs on with the color green.
All LEDs On (Blue)
Turn all LEDs on with the color blue.
All LEDs On (Custom Color)
Turn all LEDs on with a custom color. This ability requires an unsigned integer RGB hex value to be passed in.
All LEDs Off
Turn all LEDs off.
Blink All LEDs (White)
Blink all LEDs for one second with the color white.
Blink All LEDs (Red)
Blink all LEDs for one second with the color red.
Blink All LEDs (Green)
Blink all LEDs for one second with the color green.
Blink All LEDs (Blue)
Blink all LEDs for one second with the color blue.
Blink All LEDs (Custom Color)
Blink all LEDs for one second with a custom color. This ability requires an unsigned integer RGB hex value to be passed in.
Set Brightness
Set the brightness level of the LED strip. The LED strip must be refreshed for this to take effect.