A LED object is a specialized version of an IOPort object which gives access to the specific functionalities of LEDs as found on SW16.

This class is a low-level object that you shouldn't need to use directly. Use the convenience methods in the device classes instead.
Instances of this object are being created for you by the device class that holds the port (CFLink.SW16).
Members

<static> State

LED state constants. These constants define the current state reported by individual LEDs in a SW16.
Name Value Description
UNKNOWN ? LED state is unknown
NOT_CHANGING X LED is not changing state
BLINKING B LED is blinking
PULSING P LED is executing a pulse command
RAMPING R LED is executing a ramp command
DIMMING D LED is executing a dim command

<static, constant> STATE_CHANGE

LED state change event, fired when receive a state or level change from the device Your callback function for watching this event should be of the form: function(event, sender, LEDobject) the event parameter is the name of this event the sender parameter is the CFLink.Device or ModuleDevice subclass owning the LED object the LEDobject parameter is an object of type CFLink.LEDPort. sender is that CFLink.Device or ModuleDevice object that contains this LED port.