PhidgetLED |
A class for controlling a PhidgetLED. See your product manual for more specific API details, supported functionality, units, etc.
| PhidgetLED | A class for controlling a PhidgetLED. |
| Constants | |
| Current Limits | These are the supported current limits for the Phidget LED 64 Advanced. |
| Voltages | These are the supported output voltages for the Phidget LED 64 Advanced. |
| Properties | |
| LEDCount | Gets the number of LEDs supported by this PhidgetLED |
| Voltage | Gets the voltage output for all LEDs. |
| CurrentLimit | Gets the current limit for all LEDs. |
| Functions | |
| getDiscreteLED | Gets the brightness of an LED. |
| getBrightness | Gets the brightness of an LED. |
| getCurrentLimit | Gets the current limit of an LED. |
| setDiscreteLED | Sets the brightness of an LED (0-100). |
| setBrightness | Sets the brightness of an LED (0-100). |
| setCurrentLimit | Sets the current limit of an LED (0-80 mA). |
| Properties | |
| Voltage | Sets the voltage for all LED outputs. |
| CurrentLimit | Sets the current limit for all LED outputs. |
These are the supported current limits for the Phidget LED 64 Advanced. These constants are used with CurrentLimit.
| PHIDGET_LED_CURRENT_LIMIT_20mA | 20mA. |
| PHIDGET_LED_CURRENT_LIMIT_40mA | 40mA. |
| PHIDGET_LED_CURRENT_LIMIT_60mA | 60mA. |
| PHIDGET_LED_CURRENT_LIMIT_80mA | 80mA. |
These are the supported output voltages for the Phidget LED 64 Advanced. These constants are used with Voltage.
| PHIDGET_LED_VOLTAGE_1_7V | 1.7V. |
| PHIDGET_LED_VOLTAGE_2_75V | 2.75V. |
| PHIDGET_LED_VOLTAGE_3_9V | 3.9V. |
| PHIDGET_LED_VOLTAGE_5_0V | 5.0V. |
Gets the number of LEDs supported by this PhidgetLED
public function get LEDCount():int
Gets the voltage output for all LEDs.
public function get Voltage():int
Gets the current limit for all LEDs.
public function get CurrentLimit():int
Gets the brightness of an LED.
public function getDiscreteLED( index: int ):int
Gets the brightness of an LED.
public function getBrightness( index: int ):Number
Gets the current limit of an LED.
public function getCurrentLimit( index: int ):Number
Sets the brightness of an LED (0-100).
public function setDiscreteLED( index: int, val: int ):void
Sets the brightness of an LED (0-100).
public function setBrightness( index: int, val: Number ):void
Sets the current limit of an LED (0-80 mA).
public function setCurrentLimit( index: int, val: Number ):void