com.phidgets
Class TextLEDPhidget

java.lang.Object
  extended bycom.phidgets.Phidget
      extended bycom.phidgets.TextLEDPhidget

public final class TextLEDPhidget
extends Phidget

This class represents a Phidget Text LED. All methods to control the Text LED are implemented in this class.

The Text LED is a Phidget that displays text and numerals on LED numeric display in rows. The number of rows and size of each row depends on your configuration.

Author:
Phidgets Inc.

Field Summary
 
Fields inherited from class com.phidgets.Phidget
PHIDCLASS_ACCELEROMETER, PHIDCLASS_ADVANCEDSERVO, PHIDCLASS_ANALOG, PHIDCLASS_BRIDGE, PHIDCLASS_ENCODER, PHIDCLASS_FREQUENCYCOUNTER, PHIDCLASS_GPS, PHIDCLASS_INTERFACEKIT, PHIDCLASS_LED, PHIDCLASS_MOTORCONTROL, PHIDCLASS_NOTHING, PHIDCLASS_PHSENSOR, PHIDCLASS_RFID, PHIDCLASS_SERVO, PHIDCLASS_STEPPER, PHIDCLASS_TEMPERATURESENSOR, PHIDCLASS_TEXTLCD, PHIDCLASS_TEXTLED, PHIDCLASS_WEIGHTSENSOR, PHIDGET_LOG_CRITICAL, PHIDGET_LOG_DEBUG, PHIDGET_LOG_ERROR, PHIDGET_LOG_INFO, PHIDGET_LOG_VERBOSE, PHIDGET_LOG_WARNING, PHIDID_ACCELEROMETER_2AXIS, PHIDID_ACCELEROMETER_3AXIS, PHIDID_ADVANCEDSERVO_1MOTOR, PHIDID_ADVANCEDSERVO_8MOTOR, PHIDID_ANALOG_4OUTPUT, PHIDID_BIPOLAR_STEPPER_1MOTOR, PHIDID_BRIDGE_4INPUT, PHIDID_ENCODER_1ENCODER_1INPUT, PHIDID_ENCODER_HS_1ENCODER, PHIDID_ENCODER_HS_4ENCODER_4INPUT, PHIDID_FREQUENCYCOUNTER_2INPUT, PHIDID_GPS, PHIDID_INTERFACEKIT_0_0_4, PHIDID_INTERFACEKIT_0_0_8, PHIDID_INTERFACEKIT_0_16_16, PHIDID_INTERFACEKIT_0_8_8_w_LCD, PHIDID_INTERFACEKIT_2_2_2, PHIDID_INTERFACEKIT_4_8_8, PHIDID_INTERFACEKIT_8_8_8, PHIDID_INTERFACEKIT_8_8_8_w_LCD, PHIDID_IR, PHIDID_LED_64, PHIDID_LED_64_ADV, PHIDID_LINEAR_TOUCH, PHIDID_MOTORCONTROL_1MOTOR, PHIDID_MOTORCONTROL_HC_2MOTOR, PHIDID_MOTORCONTROL_LV_2MOTOR_4INPUT, PHIDID_NOTHING, PHIDID_PHSENSOR, PHIDID_RFID, PHIDID_RFID_2OUTPUT, PHIDID_RFID_2OUTPUT_READ_WRITE, PHIDID_ROTARY_TOUCH, PHIDID_SERVO_1MOTOR, PHIDID_SERVO_1MOTOR_OLD, PHIDID_SERVO_4MOTOR, PHIDID_SERVO_4MOTOR_OLD, PHIDID_SPATIAL_ACCEL_3AXIS, PHIDID_SPATIAL_ACCEL_GYRO_COMPASS, PHIDID_TEMPERATURESENSOR, PHIDID_TEMPERATURESENSOR_4, PHIDID_TEMPERATURESENSOR_IR, PHIDID_TEXTLCD_2x20, PHIDID_TEXTLCD_2x20_w_0_8_8, PHIDID_TEXTLCD_2x20_w_8_8_8, PHIDID_TEXTLCD_ADAPTER, PHIDID_TEXTLED_1x8, PHIDID_TEXTLED_4x8, PHIDID_UNIPOLAR_STEPPER_4MOTOR, PHIDID_WEIGHTSENSOR
 
Constructor Summary
TextLEDPhidget()
           
 
Method Summary
 int getBrightness()
          Returns the bringhtness.
 int getColumnCount()
          Returns the number of columns (Characters per row).
 int getRowCount()
          Returns the number of rows.
 void setBrightness(int brightness)
          Sets the brightness of all rows.
 void setDisplayString(int index, java.lang.String text)
          Sets the display string of a certain row.
 
Methods inherited from class com.phidgets.Phidget
addAttachListener, addDetachListener, addErrorListener, addServerConnectListener, addServerDisconnectListener, close, disableLogging, enableLogging, equals, getDeviceClass, getDeviceID, getDeviceLabel, getDeviceName, getDeviceType, getDeviceVersion, getLibraryVersion, getSerialNumber, getServerAddress, getServerID, getServerPort, isAttached, isAttachedToServer, log, open, open, open, open, open, openAny, openAny, openAny, openAny, openAny, openLabel, openLabel, openLabel, openLabel, openLabel, removeAttachListener, removeDetachListener, removeErrorListener, removeServerConnectListener, removeServerDisconnectListener, setDeviceLabel, toString, waitForAttachment, waitForAttachment
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextLEDPhidget

public TextLEDPhidget()
               throws PhidgetException
Method Detail

getRowCount

public int getRowCount()
                throws PhidgetException
Returns the number of rows. This returns the maximum number of rows supported by the device, not neccessarily the number of rows actually available with your coniguration.

Returns:
rows
Throws:
PhidgetException - If this Phidget is not opened and attached. See open for information on determining if a device is attached.

getColumnCount

public int getColumnCount()
                   throws PhidgetException
Returns the number of columns (Characters per row). This returns the maximum number of columns supported by the device, not neccessarily the number of columns actually available with your coniguration.

Returns:
columns
Throws:
PhidgetException - If this Phidget is not opened and attached. See open for information on determining if a device is attached.

getBrightness

public int getBrightness()
                  throws PhidgetException
Returns the bringhtness. This is the brightneww of all rows. The Default brightness is 100.

Returns:
brightness
Throws:
PhidgetException - If this Phidget is not opened and attached. See open for information on determining if a device is attached.

setBrightness

public void setBrightness(int brightness)
                   throws PhidgetException
Sets the brightness of all rows. The valid range is 0-100.

Parameters:
brightness - brightness
Throws:
PhidgetException - If this Phidget is not opened and attached, or the brightness value is out of range. See open for information on determining if a device is attached.

setDisplayString

public void setDisplayString(int index,
                             java.lang.String text)
                      throws PhidgetException
Sets the display string of a certain row. If the string is longer then the row, it will be truncated.

Parameters:
index - Row
text - String
Throws:
PhidgetException - If this Phidget is not opened and attached, or if the row is out of range. See open for information on determining if a device is attached.