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
LEDCountGets the number of LEDs supported by this PhidgetLED
VoltageGets the voltage output for all LEDs.
CurrentLimitGets the current limit for all LEDs.
Functions
getDiscreteLEDGets the brightness of an LED.
getBrightnessGets the brightness of an LED.
getCurrentLimitGets the current limit of an LED.
setDiscreteLEDSets the brightness of an LED (0-100).
setBrightnessSets the brightness of an LED (0-100).
setCurrentLimitSets the current limit of an LED (0-80 mA).
Properties
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

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.

Functions

getDiscreteLED

public function getDiscreteLED(index: int):int

Gets the brightness of an LED.  Deprecated: use getBrightness

Parameters

indexLED index

getBrightness

public function getBrightness(index: int):Number

Gets the brightness of an LED.

Parameters

indexLED index

getCurrentLimit

public function getCurrentLimit(index: int):Number

Gets the current limit of an LED.

Parameters

indexLED index

setDiscreteLED

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

Sets the brightness of an LED (0-100).  Deprecated: use setBrightness

Parameters

indexLED index
valbrightness

setBrightness

public function setBrightness(index: int,
val: Number):void

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

Parameters

indexLED index
valbrightness

setCurrentLimit

public function setCurrentLimit(index: int,
val: Number):void

Sets the current limit of an LED (0-80 mA).

Parameters

indexLED index
valcurrent limit

Properties

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 getBrightness(index: int):Number
Gets the brightness of an LED.
public function getCurrentLimit(index: int):Number
Gets the current limit of an LED.
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 brightness of an LED (0-100).
public function setCurrentLimit(index: int,
val: Number):void
Sets the current limit of an LED (0-80 mA).
Close