|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.phidgets.Phidget
com.phidgets.TextLCDPhidget
public final class TextLCDPhidget
This class represents a Phidget Text LCD. All methods to control the Text LCD are implemented in this class.
The TextLCD Phidget consists of a Vacuum Fluorescent display that is capable of displaying Standard as well as custom characters in multiple rows.
| Constructor Summary | |
|---|---|
TextLCDPhidget()
|
|
| Method Summary | |
|---|---|
boolean |
getBacklight()
Returns the status of the backlight. |
int |
getColumnCount()
Returns the number of columns (characters per row) available on the display. |
int |
getContrast()
Returns the contrastof the display. |
boolean |
getCursor()
Returns the status of the cursor. |
boolean |
getCursorBlink()
Returns the status of the cursor blink. |
int |
getRowCount()
Rwturns the number of rows available on the display. |
void |
setBacklight(boolean backlight)
Sets the status of the backlight. |
void |
setContrast(int contrast)
Sets the contrast of the display. |
void |
setCursor(boolean cursor)
Sets the state of the cursor. |
void |
setCursorBlink(boolean cursorblink)
Sets the state of the cursor blink. |
void |
setCustomCharacter(int index,
int param1,
int param2)
Sets a custom character. |
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, close, equals, getDeviceName, getDeviceType, getDeviceVersion, getLibraryVersion, getSerialNumber, getTag, isAttached, open, openAny, removeAttachListener, removeDetachListener, removeErrorListener, setTag, toString, waitForAttachment |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TextLCDPhidget()
throws PhidgetException
PhidgetException| Method Detail |
|---|
public int getRowCount()
throws PhidgetException
PhidgetException - If this Phidget is not opened and attached.
See open for information on determining if a device is attached.
public int getColumnCount()
throws PhidgetException
PhidgetException - If this Phidget is not opened and attached.
See open for information on determining if a device is attached.
public int getContrast()
throws PhidgetException
PhidgetException - If this Phidget is not opened and attached.
See open for information on determining if a device is attached.
public void setContrast(int contrast)
throws PhidgetException
contrast - New contrast to set
PhidgetException - If this Phidget is not opened and attached, or the contrast value is out of range.
See open for information on determining if a device is attached.
public boolean getBacklight()
throws PhidgetException
PhidgetException - If this Phidget is not opened and attached.
See open for information on determining if a device is attached.
public void setBacklight(boolean backlight)
throws PhidgetException
backlight - New backlight state
PhidgetException - If this Phidget is not opened and attached.
See open for information on determining if a device is attached.
public boolean getCursor()
throws PhidgetException
PhidgetException - If this Phidget is not opened and attached.
See open for information on determining if a device is attached.
public void setCursor(boolean cursor)
throws PhidgetException
cursor - New cursor state
PhidgetException - If this Phidget is not opened and attached.
See open for information on determining if a device is attached.
public boolean getCursorBlink()
throws PhidgetException
PhidgetException - If this Phidget is not opened and attached.
See open for information on determining if a device is attached.
public void setCursorBlink(boolean cursorblink)
throws PhidgetException
cursorblink - New cursor blink state
PhidgetException - If this Phidget is not opened and attached.
See open for information on determining if a device is attached.
public void setDisplayString(int index,
java.lang.String text)
throws PhidgetException
index - rowtext - String
PhidgetException - If this Phidget is not opened and attached, or if the row is invalid.
See open for information on determining if a device is attached.
public void setCustomCharacter(int index,
int param1,
int param2)
throws PhidgetException
index - position ( 8-15 )param1 - first half of the character codeparam2 - second half of the character code
PhidgetException - If this Phidget is not opened and attached, or if the index is invalid.
See open for information on determining if a device is attached.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||