public class TiOLED_UG2864 extends Object
| Constructor and Description |
|---|
TiOLED_UG2864(TiI2CMaster i2c,
int address)
TiOLED_UG2864 initialization
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear screen
|
int |
getMaxColumnNumber()
Gets the max column number
|
int |
getMaxLineNumber()
Gets the max line number
|
int |
getPositionColumn()
Gets the current column index of position
|
int |
getPositionLine()
Gets the current line index of position
|
void |
output(String text)
Output string text,
position automatic movement |
void |
print(int lineId,
int columnId,
String text)
Print string text,
position automatic movement, data that exceeds the length will be automatically deleted |
void |
setPosition(int lineId,
int columnId)
Set the position
|
void |
turnOff()
Turn off screen
|
void |
turnOn()
Turn on screen
|
public TiOLED_UG2864(TiI2CMaster i2c, int address) throws IOException
i2c - TiI2CMaster object[IN]address - slave address[IN]fontStyle - font style[IN]IOExceptionpublic void clear()
throws IOException
IOExceptionpublic int getMaxColumnNumber()
public int getMaxLineNumber()
public int getPositionColumn()
public int getPositionLine()
public void output(String text) throws IOException
text - string text[IN]IOExceptionpublic void print(int lineId,
int columnId,
String text)
throws IOException
lineId - line index[IN],range:0-3columnId - column index[IN],range:0-15text - string text[IN]IOExceptionpublic void setPosition(int lineId,
int columnId)
lineId - line index[IN], range:0-3columnId - column index[IN],range:0-15public void turnOff()
throws IOException
IOExceptionpublic void turnOn()
throws IOException
IOException