|
|||||||||||
| 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 | |
private int |
currentEnable
|
private int |
enableBit
|
private int |
enablePort
|
| Fields inherited from class de.wagner_ibw.iow.lcd.LCDImpl |
charBlinking, cols, cursorOn, dispOn, iow, lineStartAdr, name, physicalRows, rows |
| 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. |
private void |
enableE1()
|
private void |
enableE2()
|
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(AbstractIowDevcie iow)
Sets the reference to an 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)
|
private void |
toggleEnable()
|
private long |
writeDoubleCmd(int cmd)
|
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, initLCD, matchReportId, reportReceived, setCGRAMAddr, setCursorleft, setCursorRight, setDDRAMAddr, writeCmd, writeData, writeLine, writeString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int currentEnable
private int enablePort
private int enableBit
| Constructor Detail |
public DoubleLCDImpl(int enablePort,
int enableBit)
| Method Detail |
public long clearLCD()
LCD
clearLCD in interface LCDclearLCD in class LCDImplpublic long setCursorHome()
LCD
setCursorHome in interface LCDsetCursorHome in class LCDImpl
public long setEntryMode(boolean moveForward,
boolean shiftDisp)
LCD
setEntryMode in interface LCDsetEntryMode in class LCDImplmoveForward - 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 LCDsetDisplayControl in class LCDImpldispOn - 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 LCDsetShiftControl in class LCDImplshiftDisp - 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 LCDwriteLine in class LCDImplrow - clear - str -
java.lang.IllegalArgumentException
public long setCursor(int row,
int col)
throws java.lang.IllegalArgumentException
LCDImpl
setCursor in interface LCDsetCursor in class LCDImplrow - display line (1...4)col - column in row (1...40)
java.lang.IllegalArgumentExceptionpublic long setCursorDispOn()
LCDImpl
setCursorDispOn in interface LCDsetCursorDispOn in class LCDImplpublic long setDispOff()
LCDImpl
setDispOff in interface LCDsetDispOff in class LCDImplpublic long setCursorOn()
LCDImpl
setCursorOn in interface LCDsetCursorOn in class LCDImplpublic long setCursorOff()
LCDImpl
setCursorOff in interface LCDsetCursorOff in class LCDImpl
public void setSpecialChar(int code,
int[] pattern)
throws java.lang.IllegalArgumentException
setSpecialChar in interface LCDsetSpecialChar in class LCDImpljava.lang.IllegalArgumentException
public void moveSprite(int row,
java.lang.String[] sprites,
int wait)
throws java.lang.IllegalArgumentException
moveSprite in interface LCDmoveSprite in class LCDImpljava.lang.IllegalArgumentExceptionpublic void setIowDevice(AbstractIowDevcie iow)
SpecialModeFunction
setIowDevice in interface SpecialModeFunctionsetIowDevice in class LCDImpliow - Instance of an iow device.private long writeDoubleCmd(int cmd)
private void enableE1()
private void enableE2()
private void toggleEnable()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||