|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.wagner_ibw.iow.lcd.LCD16x16
This class represents a generic 16 x 16 display.
proved type(s):
Constructor Summary | |
LCD16x16(AbstractIowDevice dev)
|
Method Summary | |
void |
check()
Prüft die korrekte Anzeige. |
long |
clearLCD()
OK Clears entire dislplay and sets DDRAM address 0 in address counter. |
int |
getCols()
|
int |
getRows()
|
void |
moveSprite(int row,
java.lang.String[] sprites,
int wait)
|
long |
setCGRAMAddr(int address)
????? |
long |
setCursor(int row,
int col)
OK Moves cursor to new Position. |
long |
setCursorDispOn()
OK Convenient method: Turn LCD display on. |
long |
setCursorHome()
OK Sets DDRAM address 0 in address counter. |
long |
setCursorleft()
Move LCD cursor to the left |
long |
setCursorOff()
OK Convenient method: Turn LCD cursor off. |
long |
setCursorOn()
OK Convenient method: Turn LCD cursor on. |
long |
setCursorRight()
Move LCD cursor to the right |
long |
setDDRAMAddr(int address)
????? |
long |
setDisplayControl(boolean dispOn,
boolean cursorOn,
boolean charBlinking)
OK Sets ON/OFF of all display (dispOn), cursor ON/OFF (cursorOn), and blink of cursor position character (cursorBlink). |
long |
setDispOff()
OK Convenient method: Turn LCD display off. |
long |
setEntryMode(boolean moveForward,
boolean shiftDisp)
OK Sets cursor move direction and specifies display shift. |
long |
setShiftControl(boolean shiftDisp,
boolean shiftDir)
OK Moves cursor and shifts display whitout changing DDRAM contents. |
void |
setSpecialChar(int code,
int[] pattern)
|
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)
OK 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 LCD16x16(AbstractIowDevice dev)
Method Detail |
public int getRows()
getRows
in interface LCD
public int getCols()
getCols
in interface LCD
public long clearLCD()
LCD
clearLCD
in interface LCD
public long setCursorHome()
LCD
setCursorHome
in interface LCD
public long setEntryMode(boolean moveForward, boolean shiftDisp)
LCD
setEntryMode
in interface LCD
moveForward
- true: increment, false: decrementshiftDisp
- true: display is shifted, false: display is not shifted
public long setDisplayControl(boolean dispOn, boolean cursorOn, boolean charBlinking)
LCD
setDisplayControl
in interface LCD
dispOn
- 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 long setShiftControl(boolean shiftDisp, boolean shiftDir)
LCD
setShiftControl
in interface LCD
shiftDisp
- 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
LCD
writeLine
in interface LCD
row
- clear
- str
-
java.lang.IllegalArgumentException
public void writeLine(int row, int col, boolean clear, java.lang.String str) throws java.lang.IllegalArgumentException
LCD
writeLine
in interface LCD
row
- clear
- str
-
java.lang.IllegalArgumentException
public void writeString(java.lang.String str)
LCD
writeString
in interface LCD
str
- String to writepublic long setDDRAMAddr(int address)
LCD
setDDRAMAddr
in interface LCD
public long setCGRAMAddr(int address)
LCD
setCGRAMAddr
in interface LCD
public long setCursor(int row, int col) throws java.lang.IllegalArgumentException
LCD
setCursor
in interface LCD
row
- display line (1...4)col
- column in row (1...40)
java.lang.IllegalArgumentException
public long setCursorDispOn()
LCD
setCursorDispOn
in interface LCD
public long setDispOff()
LCD
setDispOff
in interface LCD
public long setCursorOn()
LCD
setCursorOn
in interface LCD
public long setCursorOff()
LCD
setCursorOff
in interface LCD
public long setCursorleft()
LCD
setCursorleft
in interface LCD
public long setCursorRight()
LCD
setCursorRight
in interface LCD
public void check()
LCD
check
in interface LCD
public void setSpecialChar(int code, int[] pattern) throws java.lang.IllegalArgumentException
setSpecialChar
in interface LCD
java.lang.IllegalArgumentException
public void moveSprite(int row, java.lang.String[] sprites, int wait) throws java.lang.IllegalArgumentException
moveSprite
in interface LCD
java.lang.IllegalArgumentException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |