| Modifier and Type | Field and Description |
|---|---|
protected int |
columns |
protected int |
rows |
| Constructor and Description |
|---|
I2CLcdDisplay(int rows,
int columns,
int i2cBus,
int i2cAddress,
int backlightBit,
int rsBit,
int rwBit,
int eBit,
int d7,
int d6,
int d5,
int d4)
Constructs ...
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
diagnostics() |
static BitSet |
fromByte(byte b) |
int |
getColumnCount() |
int |
getRowCount() |
boolean |
isBacklight() |
void |
lcd_byte(int val,
boolean type) |
void |
setBacklight(boolean backlight) |
void |
setBacklight(boolean backlight,
boolean immediate) |
void |
setCursorHome() |
void |
setCursorPosition(int row,
int column) |
void |
write(byte data) |
void |
write(String data) |
clear, clear, setCursorPosition, validateColumnIndex, validateCoordinates, validateRowIndex, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, writeln, writeln, writeln, writelnclearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTagclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, clear, setCursorPosition, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, writeln, writeln, writeln, writelnclearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTagpublic I2CLcdDisplay(int rows,
int columns,
int i2cBus,
int i2cAddress,
int backlightBit,
int rsBit,
int rwBit,
int eBit,
int d7,
int d6,
int d5,
int d4)
throws Exception
rows - columns - i2cBus - i2cAddress - backlightBit - rsBit - rwBit - eBit - d7 - d6 - d5 - d4 - Exceptionpublic void write(byte data)
public void write(String data)
public void lcd_byte(int val,
boolean type)
throws Exception
val - type - true = display data, false = LCD cmdExceptionpublic void diagnostics()
public static BitSet fromByte(byte b)
public int getRowCount()
getRowCount in interface LCDgetRowCount in class LCDBasepublic int getColumnCount()
getColumnCount in interface LCDgetColumnCount in class LCDBasepublic void setCursorHome()
setCursorHome in interface LCDsetCursorHome in class LCDBasepublic void setCursorPosition(int row,
int column)
setCursorPosition in interface LCDsetCursorPosition in class LCDBaserow - column - public void setBacklight(boolean backlight)
backlight - the backlight to setpublic void setBacklight(boolean backlight,
boolean immediate)
throws IOException
backlight - the backlight to setimmediate - optionally update the device immediatelyIOExceptionpublic boolean isBacklight()
Copyright © 2012–2019 Pi4J. All rights reserved.