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]IOException
public void clear() throws IOException
IOException
public int getMaxColumnNumber()
public int getMaxLineNumber()
public int getPositionColumn()
public int getPositionLine()
public void output(String text) throws IOException
text
- string text[IN]IOException
public 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]IOException
public void setPosition(int lineId, int columnId)
lineId
- line index[IN], range:0-3columnId
- column index[IN],range:0-15public void turnOff() throws IOException
IOException
public void turnOn() throws IOException
IOException