|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--de.wagner_ibw.iow.lcd.AbstractLCD
|
+--de.wagner_ibw.iow.lcd.LCD16x21
This class represents a generic 16 x 16 display.
proved type(s):
| Field Summary |
| Fields inherited from interface de.wagner_ibw.iow.SpecialModeFunction |
SMF_CPS_ID, SMF_I2C_ID, SMF_LCD_ID, SMF_LED_ID, SMF_RC5_ID, SMF_SMX_ID, SMF_SPI_ID |
| Constructor Summary | |
LCD16x21(AbstractIowDevice dev)
|
|
| Method Summary | |
void |
check()
Shows a test pattern on display. |
java.lang.String |
checkCompatibility(int id,
int rev,
int specialModes)
Checks if it is possible to activate this special mode function. |
void |
clearLCD()
Clears entire dislplay and sets DDRAM address 0 in address counter. |
int |
getCols()
|
int[] |
getDisableReport()
Returns the report that disables the special mode function. |
int[] |
getEnableReport()
Returns the report that enables the special mode function. |
int[] |
getIowSpecialBits(int deviceIdentifier)
Returns an array of bitmask(s) for port 0...1, 0...3 or 0...6 if this special mode function runs on this iow device. |
java.lang.String |
getName()
Returns the name of the special mode function. |
int[] |
getReportIds()
Returns the report id(s) which the implementation is interested in. |
int |
getRows()
|
int |
getSpecialModeFuncionId()
Returns the special mode function id for this implementation. |
boolean |
matchReportId(int reportId)
Checks if this implementation is interested in this report. |
void |
moveSprite(int row,
java.lang.String[] sprites,
int wait)
|
void |
reportReceived(int[] readBuffer)
Callback method is called when a matching report was received. |
void |
setCGRAMAddr(int address)
|
void |
setCursor(int row,
int col)
Moves cursor to new Position. |
void |
setCursorDispOn()
Convenient method: Turn LCD display on. |
void |
setCursorHome()
Sets DDRAM address 0 in address counter. |
void |
setCursorleft()
Move LCD cursor to the left |
void |
setCursorOff()
Convenient method: Turn LCD cursor off. |
void |
setCursorOn()
Convenient method: Turn LCD cursor on. |
void |
setCursorRight()
Move LCD cursor to the right |
void |
setDDRAMAddr(int address)
|
void |
setDisplayControl(boolean dispOn,
boolean cursorOn,
boolean charBlinking)
Sets ON/OFF of all display (dispOn), cursor ON/OFF (cursorOn), and blink of cursor position character (cursorBlink). |
void |
setDispOff()
Convenient method: Turn LCD display off. |
void |
setEntryMode(boolean moveForward,
boolean shiftDisp)
Sets cursor move direction and specifies display shift. |
void |
setIowDevice(AbstractIowDevice iow)
Sets the reference to the underlying iow device for write report operations. |
void |
setShiftControl(boolean shiftDisp,
boolean shiftDir)
Moves cursor and shifts display whitout changing DDRAM contents. |
void |
setSpecialChar(int code,
int[] pattern)
Sets a special char in CGRAM. |
void |
writeLine(int row,
boolean clear,
java.lang.String str)
Write the given String in row specified by parm row. |
void |
writeLine(int row,
int col,
boolean clear,
java.lang.String str)
Write the given String in the specified row and column. |
void |
writeString(java.lang.String str)
Write the given string to LCD. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LCD16x21(AbstractIowDevice dev)
| Method Detail |
public int getRows()
getRows in class AbstractLCDpublic int getCols()
getCols in class AbstractLCDpublic void clearLCD()
AbstractLCD
clearLCD in class AbstractLCDpublic void setCursorHome()
AbstractLCD
setCursorHome in class AbstractLCD
public void setEntryMode(boolean moveForward,
boolean shiftDisp)
AbstractLCD
setEntryMode in class AbstractLCDmoveForward - true: increment, false: decrementshiftDisp - true: display is shifted, false: display is not shifted
public void setDisplayControl(boolean dispOn,
boolean cursorOn,
boolean charBlinking)
AbstractLCD
setDisplayControl in class AbstractLCDdispOn - true: the display is on, false: display is offcursorOn - true: cursor is displayed, false: cursor is not displayedcharBlinking - true: the character indicated by the cursor blinks,
false: blinks not
public void setShiftControl(boolean shiftDisp,
boolean shiftDir)
AbstractLCD
setShiftControl in class AbstractLCDshiftDisp - true: display shift, false: cursor move;shiftDir - true: shift to the right, false: shift to the left
public void writeLine(int row,
boolean clear,
java.lang.String str)
throws java.lang.IllegalArgumentException
AbstractLCD
writeLine in class AbstractLCDrow - clear - str -
java.lang.IllegalArgumentException
public void writeLine(int row,
int col,
boolean clear,
java.lang.String str)
throws java.lang.IllegalArgumentException
AbstractLCD
writeLine in class AbstractLCDrow - clear - str -
java.lang.IllegalArgumentExceptionpublic void writeString(java.lang.String str)
AbstractLCD
writeString in class AbstractLCDstr - String to writepublic void setDDRAMAddr(int address)
public void setCGRAMAddr(int address)
public void setCursor(int row,
int col)
throws java.lang.IllegalArgumentException
AbstractLCD
setCursor in class AbstractLCDrow - display line (1...4)col - column in row (1...40)
java.lang.IllegalArgumentExceptionpublic void setCursorDispOn()
AbstractLCD
setCursorDispOn in class AbstractLCDpublic void setDispOff()
AbstractLCD
setDispOff in class AbstractLCDpublic void setCursorOn()
AbstractLCD
setCursorOn in class AbstractLCDpublic void setCursorOff()
AbstractLCD
setCursorOff in class AbstractLCDpublic void setCursorleft()
AbstractLCD
setCursorleft in class AbstractLCDpublic void setCursorRight()
AbstractLCD
setCursorRight in class AbstractLCDpublic void check()
AbstractLCD
check in class AbstractLCD
public void setSpecialChar(int code,
int[] pattern)
throws java.lang.IllegalArgumentException
AbstractLCD
setSpecialChar in class AbstractLCDcode - pattern -
java.lang.IllegalArgumentException
public void moveSprite(int row,
java.lang.String[] sprites,
int wait)
throws java.lang.IllegalArgumentException
moveSprite in class AbstractLCDrow - sprites - wait -
java.lang.IllegalArgumentException
public java.lang.String checkCompatibility(int id,
int rev,
int specialModes)
SpecialModeFunction
checkCompatibility in interface SpecialModeFunctioncheckCompatibility in class AbstractLCDid - Id of the current IO-Warrior device.rev - Rev of the current IO-Warrior device.specialModes - Special modes from the current IO-Warrior device.
public int[] getDisableReport()
SpecialModeFunction
getDisableReport in interface SpecialModeFunctiongetDisableReport in class AbstractLCDpublic int[] getEnableReport()
SpecialModeFunction
getEnableReport in interface SpecialModeFunctiongetEnableReport in class AbstractLCDpublic int[] getIowSpecialBits(int deviceIdentifier)
SpecialModeFunction
getIowSpecialBits in interface SpecialModeFunctiongetIowSpecialBits in class AbstractLCDdeviceIdentifier - Iow device identifier (AbstractIowDevice.IOW24ID<(code>,
AbstractIowDevice.IOW24ID or AbstractIowDevice.IOW56ID).
- Returns:
- Array of int that contains bitmask(s) for special mode function bits.
public java.lang.String getName()
SpecialModeFunction
getName in interface SpecialModeFunctiongetName in class AbstractLCDpublic int[] getReportIds()
SpecialModeFunction
getReportIds in interface SpecialModeFunctiongetReportIds in class AbstractLCDpublic int getSpecialModeFuncionId()
SpecialModeFunction
getSpecialModeFuncionId in interface SpecialModeFunctiongetSpecialModeFuncionId in class AbstractLCDpublic boolean matchReportId(int reportId)
SpecialModeFunction
matchReportId in interface SpecialModeFunctionmatchReportId in class AbstractLCDreportId - Report id of the received report.
public void reportReceived(int[] readBuffer)
SpecialModeFunction
reportReceived in interface SpecialModeFunctionreportReceived in class AbstractLCDreadBuffer - Read buffer from a received report.public void setIowDevice(AbstractIowDevice iow)
SpecialModeFunction
setIowDevice in interface SpecialModeFunctionsetIowDevice in class AbstractLCDiow - Instance of an iow device.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||