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 |
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, writeln
clearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTag
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, clear, setCursorPosition, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, writeln, writeln, writeln, writeln
clearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTag
public 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
- Exception
public 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 cmdException
public void diagnostics()
public static BitSet fromByte(byte b)
public int getRowCount()
getRowCount
in interface LCD
getRowCount
in class LCDBase
public int getColumnCount()
getColumnCount
in interface LCD
getColumnCount
in class LCDBase
public void setCursorHome()
setCursorHome
in interface LCD
setCursorHome
in class LCDBase
public void setCursorPosition(int row, int column)
setCursorPosition
in interface LCD
setCursorPosition
in class LCDBase
row
- column
- public void setBacklight(boolean backlight)
backlight
- the backlight to setpublic boolean isBacklight()
Copyright © 2012–2014 Pi4J. All rights reserved.