|
|||||||||||
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.HD44780 | +--de.wagner_ibw.iow.lcd.DoubleHD44780Ahw
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 | |
DoubleHD44780Ahw(int enablePort,
int enableBit)
|
Method Summary | |
void |
clearLCD()
Clears entire dislplay and sets DDRAM address 0 in address counter. |
void |
moveSprite(int row,
java.lang.String[] sprites,
int wait)
|
void |
setCursor(int row,
int col)
OK Moves cursor to new Position. |
void |
setCursorDispOn()
Convenient method: Turn LCD display on. |
void |
setCursorHome()
Sets DDRAM address 0 in address counter. |
void |
setCursorOff()
OK Convenient method: Turn LCD cursor off. |
void |
setCursorOn()
OK Convenient method: Turn LCD cursor on. |
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()
OK 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,
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.HD44780 |
check, checkCompatibility, getDisableReport, getEnableReport, getIowSpecialBits, getName, getReportIds, getSpecialModeFuncionId, matchReportId, reportReceived, setCGRAMAddr, setCursorleft, setCursorRight, setDDRAMAddr, writeLine, writeString |
Methods inherited from class de.wagner_ibw.iow.lcd.AbstractLCD |
getCols, getRows |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DoubleHD44780Ahw(int enablePort, int enableBit)
Method Detail |
public void clearLCD()
AbstractLCD
clearLCD
in class HD44780
public void setCursorHome()
AbstractLCD
setCursorHome
in class HD44780
public void setEntryMode(boolean moveForward, boolean shiftDisp)
AbstractLCD
setEntryMode
in class HD44780
moveForward
- true: increment, false: decrementshiftDisp
- true: display is shifted, false: display is not shiftedpublic void setDisplayControl(boolean dispOn, boolean cursorOn, boolean charBlinking)
AbstractLCD
setDisplayControl
in class HD44780
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 notpublic void setShiftControl(boolean shiftDisp, boolean shiftDir)
AbstractLCD
setShiftControl
in class HD44780
shiftDisp
- true: display shift, false: cursor move;shiftDir
- true: shift to the right, false: shift to the leftpublic void writeLine(int row, int col, boolean clear, java.lang.String str) throws java.lang.IllegalArgumentException
AbstractLCD
writeLine
in class HD44780
row
- clear
- str
-
java.lang.IllegalArgumentException
public void setCursor(int row, int col) throws java.lang.IllegalArgumentException
HD44780
setCursor
in class HD44780
row
- display line (1...4)col
- column in row (1...40)
java.lang.IllegalArgumentException
public void setCursorDispOn()
HD44780
setCursorDispOn
in class HD44780
public void setDispOff()
HD44780
setDispOff
in class HD44780
public void setCursorOn()
HD44780
setCursorOn
in class HD44780
public void setCursorOff()
HD44780
setCursorOff
in class HD44780
public void setSpecialChar(int code, int[] pattern) throws java.lang.IllegalArgumentException
AbstractLCD
setSpecialChar
in class HD44780
code
- pattern
-
java.lang.IllegalArgumentException
public void moveSprite(int row, java.lang.String[] sprites, int wait) throws java.lang.IllegalArgumentException
moveSprite
in class HD44780
row
- sprites
- wait
-
java.lang.IllegalArgumentException
public void setIowDevice(AbstractIowDevice iow)
SpecialModeFunction
setIowDevice
in interface SpecialModeFunction
setIowDevice
in class HD44780
iow
- Instance of an iow device.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |