PhidgetLED

PhidgetLED

A class for controlling a PhidgetLED.  See your product manual for more specific API details, supported functionality, units, etc.

Summary
PhidgetLEDA class for controlling a PhidgetLED.
Constants
Current LimitsThese are the supported current limits for the Phidget LED 64 Advanced.
VoltagesThese are the supported output voltages for the Phidget LED 64 Advanced.
Properties and Functions
LEDCountGets the number of LEDs supported by this PhidgetLED
VoltageGets the voltage output for all LEDs.
CurrentLimitGets the current limit for all LEDs.
getDiscreteLEDGets the brightness of an LED.
setDiscreteLEDSets the brightness of an LED (0-100).
VoltageSets the voltage for all LED outputs.
CurrentLimitSets the current limit for all LED outputs.

Constants

Current Limits

These are the supported current limits for the Phidget LED 64 Advanced.  These constants are used with CurrentLimit.

PHIDGET_LED_CURRENT_LIMIT_20mA20mA.
PHIDGET_LED_CURRENT_LIMIT_40mA40mA.
PHIDGET_LED_CURRENT_LIMIT_60mA60mA.
PHIDGET_LED_CURRENT_LIMIT_80mA80mA.

Voltages

These are the supported output voltages for the Phidget LED 64 Advanced.  These constants are used with Voltage.

PHIDGET_LED_VOLTAGE_1_7V1.7V.
PHIDGET_LED_VOLTAGE_2_75V2.75V.
PHIDGET_LED_VOLTAGE_3_9V3.9V.
PHIDGET_LED_VOLTAGE_5_0V5.0V.

Properties and Functions

LEDCount

public function get LEDCount():int

Gets the number of LEDs supported by this PhidgetLED

Voltage

public function get Voltage():int

Gets the voltage output for all LEDs.  This is not supported by all PhidgetLEDs.

CurrentLimit

public function get CurrentLimit():int

Gets the current limit for all LEDs.  This is not supported by all PhidgetLEDs.

getDiscreteLED

public function getDiscreteLED(index: int):int

Gets the brightness of an LED.

Parameters

indexLED index

setDiscreteLED

public function setDiscreteLED(index: int,
val: int):void

Sets the brightness of an LED (0-100).

Parameters

indexLED index
valbrightness

Voltage

public function set Voltage(val: int):void

Sets the voltage for all LED outputs.  This is not supported by all PhidgetLEDs.

Parameters

valone of the predefined output voltages.

CurrentLimit

public function set CurrentLimit(val: int):void

Sets the current limit for all LED outputs.  This is not supported by all PhidgetLEDs.

Parameters

valone of the predefined current limits.
Base Phidget class from which all specific device classes inherit.
public function get LEDCount():int
Gets the number of LEDs supported by this PhidgetLED
public function get Voltage():int
Gets the voltage output for all LEDs.
public function get CurrentLimit():int
Gets the current limit for all LEDs.
public function getDiscreteLED(index: int):int
Gets the brightness of an LED.
public function setDiscreteLED(index: int,
val: int):void
Sets the brightness of an LED (0-100).
Close