|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.wagner_ibw.iow.lcd.LCDImpl | +--de.wagner_ibw.iow.lcd.DoubleLCDImpl
This is another implementation of the LCD special mode function. It supports only double controler LCD display. Additional hardware (74HCT02) and one IO-pin is needed.
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 | |
DoubleLCDImpl(int enablePort,
int enableBit)
|
Method Summary | |
long |
clearLCD()
OK Clears entire dislplay and sets DDRAM address 0 in address counter. |
void |
moveSprite(int row,
java.lang.String[] sprites,
int wait)
|
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 |
setCursorOff()
OK Convenient method: Turn LCD cursor off. |
long |
setCursorOn()
OK Convenient method: Turn LCD cursor on. |
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. |
void |
setIowDevice(AbstractIowDevice iow)
Sets the reference to the underlying iow device for write report operations. |
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,
int col,
boolean clear,
java.lang.String str)
Write the given String in the specified row and column. |
Methods inherited from class de.wagner_ibw.iow.lcd.LCDImpl |
check, checkCompatibility, getCols, getDisableReport, getEnableReport, getIowSpecialBits, getName, getReportIds, getRows, getSpecialModeFuncionId, matchReportId, reportReceived, setCGRAMAddr, setCursorleft, setCursorRight, setDDRAMAddr, writeLine, writeString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DoubleLCDImpl(int enablePort, int enableBit)
Method Detail |
public long clearLCD()
LCD
clearLCD
in interface LCD
clearLCD
in class LCDImpl
public long setCursorHome()
LCD
setCursorHome
in interface LCD
setCursorHome
in class LCDImpl
public long setEntryMode(boolean moveForward, boolean shiftDisp)
LCD
setEntryMode
in interface LCD
setEntryMode
in class LCDImpl
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
setDisplayControl
in class LCDImpl
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
setShiftControl
in class LCDImpl
shiftDisp
- true: display shift, false: cursor move;shiftDir
- true: shift to the right, false: shift to the left
public void writeLine(int row, int col, boolean clear, java.lang.String str) throws java.lang.IllegalArgumentException
LCD
writeLine
in interface LCD
writeLine
in class LCDImpl
row
- clear
- str
-
java.lang.IllegalArgumentException
public long setCursor(int row, int col) throws java.lang.IllegalArgumentException
LCDImpl
setCursor
in interface LCD
setCursor
in class LCDImpl
row
- display line (1...4)col
- column in row (1...40)
java.lang.IllegalArgumentException
public long setCursorDispOn()
LCDImpl
setCursorDispOn
in interface LCD
setCursorDispOn
in class LCDImpl
public long setDispOff()
LCDImpl
setDispOff
in interface LCD
setDispOff
in class LCDImpl
public long setCursorOn()
LCDImpl
setCursorOn
in interface LCD
setCursorOn
in class LCDImpl
public long setCursorOff()
LCDImpl
setCursorOff
in interface LCD
setCursorOff
in class LCDImpl
public void setSpecialChar(int code, int[] pattern) throws java.lang.IllegalArgumentException
setSpecialChar
in interface LCD
setSpecialChar
in class LCDImpl
java.lang.IllegalArgumentException
public void moveSprite(int row, java.lang.String[] sprites, int wait) throws java.lang.IllegalArgumentException
moveSprite
in interface LCD
moveSprite
in class LCDImpl
java.lang.IllegalArgumentException
public void setIowDevice(AbstractIowDevice iow)
SpecialModeFunction
setIowDevice
in interface SpecialModeFunction
setIowDevice
in class LCDImpl
iow
- Instance of an iow device.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |