Class: LED

LED

Provides methods and properties for accessing a tool LED.

Members


color :number

Gets/Sets the color of the LED

Type:
  • number
Since:
  • 1.0 (WAT 1.0)
See:
Example
led.color = led.Color.Yellow;

Color :object

Available colors for an LED. Note that LED colors are mutually exclusive and cannot be combined.

Type:
  • object
Properties:
Name Type Description
None number

0

Green number

1

Yellow number

2

Red number

4

Since:
  • 1.0 (WAT 1.0)
See:

<readonly> name :string

The name of the LED (LED[0-7])

Type:
  • string
Since:
  • 1.0 (WAT 1.0)

Events


stateChanged

Indicates that the state of the LED has changed. Event will only fire if monitor mode has been enabled.

Parameters:
Name Type Description
color number

current color setting

Since:
  • 1.0 (WAT 1.0)
See:
Example
led.stateChanged.connect(function(color) {
   console.log('LED color is now ' + color);
});