LED Commands

led-alternate

Immediately alternate between two LED states.

Usage:

led-alternate pos1 rgb1 brightness1 duration1 pos2 rgb2 brightness2 duration2 count [shutoff_ms]
Parameter Description
pos1 State 1 - Mask of led positions for state 1.
rgb1 State 1 - 24-bit color value of the form 0xRRGGBB.
brightness1 State 1 - Brightness value (0-off, 255-full brightness)
duration1 State 1 - Duration in milliseconds to remain in state 1.
pos2 State 2 - Mask of led positions for state 2.
rgb2 State 2 - 24-bit color value of the form 0xRRGGBB.
brightness2 State 2 - Brightness value (0-off, 255-full brightness)
duration2 State 2 - Duration in milliseconds to remain in state 2.
count Number of times to alternate.
[shutoff_ms] Time LEDs should remain in State 2 after alternating completes. (-1: indefinite, default: 0ms)

Immediately blink one or more LEDs.

Usage:

led-blink pos_mask rgb_color brightness blink_count [blink_speed_ms] [shutoff_ms]
Parameter Description
pos_mask Mask of led positions to blink.
rgb_color 24-bit color value of the form 0xRRGGBB.
brightness State 1 - Brightness value (0-off, 255-full brightness)
blink_count Number of times to blink.
[blink_speed_ms] Optional duration in milliseconds the leds are on/off. (default: 500ms).
[shutoff_ms] Optional time LEDs should remain off after blinking stops. (-1: indefinte, default: 0ms)

led-demo

Crazy psychedelic LED demo.

Usage:

led-demo

led-set

Immediately set color and brightness of one or more LEDs.

Usage:

led-set pos_mask rgb_color brightness shutoff_ms
Parameter Description
pos_mask Mask of led positions to set.
rgb_color 24-bit color value of the form 0xRRGGBB.
brightness State 1 - Brightness value (0-off, 255-full brightness)
shutoff_ms Time in milliseconds the LEDs remain on. Use -1 to set indefinitely.

led-transition

Immediately transition between two LED states.

Usage:

led-transition pos1 rgb1 brightness1 pos2 rgb2 brightness2 duration [rewind] [shutoff_ms]
Parameter Description
pos1 State 1 - Mask of led positions for state 1.
rgb1 State 1 - 24-bit color value of the form 0xRRGGBB.
brightness1 State 1 - Brightness value (0-off, 255-full brightness)
duration1 State 1 - Duration in milliseconds to remain in state 1.
pos2 State 2 - Mask of led positions for state 2.
rgb2 State 2 - 24-bit color value of the form 0xRRGGBB.
brightness2 State 2 - Brightness value (0-off, 255-full brightness)
duration2 Duration in milliseconds the transition should take.
[rewind] If specified and truthy, additionally transitions back to State 1. (default: false)
[shutoff_ms] Time LEDs should remain in state 2 after transition completes. (-1: indefinite, default: 0ms)

LED Positions

The Aurora Dreamband comes equipped with two multi-color LEDs that can be controlled independently of one another. LED commands generally accept a mask of LEDs to control.

Id Mask Position
0 1 Left-Eye LED
1 2 Right-Eye LED
N/A 3 Left and Right LEDs
N/A 0 No LEDs

LED Colors

The Aurora's LEDs are 3-color RGB LEDs. This means that each LED is actually 3 tiny LEDs (red, green and blue) combined into one. A common way of representing colors made up of red, green, and blue is using 24-bit hexadecimal notation. Because of the limited brightness of the LEDs as well as limitations of the human eye, it's unreasonable to expect 2^24, or 16,777,216 unique colors. Practically speaking, the Aurora is capable of producing about 8 easily identifiable yet distinct colors:

Color Name 24-bit Hex Color Code
 
Off 0x000000
 
White 0xFFFFFF
 
Red 0xFF0000
 
Green 0x00FF00
 
Blue 0x0000FF
 
Yellow 0xFFFF00
 
Magenta 0xFF00FF
 
Cyan 0x00FFFF
 
Orange 0xFFA500

results matching ""

    No results matching ""