API for SSD1306 I2C-controlled OLED displays.
More...
SSD1306 is a 128x64 dot-matrix OLED/PLED segment driver with a controller. This device is available from many suppliers for a very low cost. This implementation was tested using a generic SSD1306 device from eBay.
|
|
synchronized void | delete () |
| |
| | SSD1306 (int bus, int address) |
| |
|
| SSD1306 (int bus) |
| |
|
int | draw (byte[] data) |
| |
| int | write (String msg) |
| |
| int | setCursor (int row, int column) |
| |
| int | clear () |
| |
| int | home () |
| |
| int | invert (boolean i) |
| |
| void | startscrollright (short start, short stop) |
| |
| void | startscrollleft (short start, short stop) |
| |
| void | startscrolldiagright (short start, short stop) |
| |
| void | startscrolldiagleft (short start, short stop) |
| |
|
void | stopscroll () |
| |
| void | dim (boolean dim) |
| |
|
synchronized void | delete () |
| |
|
int | write (int x, int y, String msg) |
| |
|
int | write (String msg) |
| |
|
int | setCursor (int row, int column) |
| |
|
int | clear () |
| |
|
int | home () |
| |
|
String | name () |
| |
SSD1306 constructor; calls libmraa initialisation functions
- Parameters
-
| bus | I2C bus to use |
| address | Slave address the LCD is registered on |
Clears the display of all characters
- Returns
- Result of the operation
Dims display
- Parameters
-
| dim | True to dim display, false for max intensity |
- Returns
- Result of last operation
Returns to the original coordinates (0,0)
- Returns
- Result of the operation
Inverts the display
- Parameters
-
| i | true to invert, false for normal display |
- Returns
- Result of the operation
| int setCursor |
( |
int |
row, |
|
|
int |
column |
|
) |
| |
Sets the cursor to specified coordinates
- Parameters
-
| row | Row to set the cursor to |
| column | Column to set the cursor to |
- Returns
- Result of the operation
| void startscrolldiagleft |
( |
short |
start, |
|
|
short |
stop |
|
) |
| |
Activate a scroll to the upper left for rows start through stop The display is 16 rows tall. To scroll the whole display, run: display.startscrolldiaagright(0x00, 0x0F)
- Parameters
-
| start | First row to scroll |
| stop | Last row to scroll |
- Returns
- void
| void startscrolldiagright |
( |
short |
start, |
|
|
short |
stop |
|
) |
| |
Activate a scroll to the upper right for rows start through stop The display is 16 rows tall. To scroll the whole display, run: display.startscrollleft(0x00, 0x0F)
- Parameters
-
| start | First row to scroll |
| stop | Last row to scroll |
- Returns
- void
| void startscrollleft |
( |
short |
start, |
|
|
short |
stop |
|
) |
| |
Activate a scroll to the left for rows start through stop The display is 16 rows tall. To scroll the whole display, run: display.startscrollright(0x00, 0x0F)
- Parameters
-
| start | First row to scroll |
| stop | Last row to scroll |
- Returns
- void
| void startscrollright |
( |
short |
start, |
|
|
short |
stop |
|
) |
| |
Activate a scroll to the right for rows start through stop The display is 16 rows tall. To scroll the whole display, run: display.scrollright(0x00, 0x0F)
- Parameters
-
| start | First row to scroll |
| stop | Last row to scroll |
- Returns
- void
Writes a string to the LCD
- Parameters
-
| msg | std::string to write to the display; note: only ASCII characters are supported |
- Returns
- Result of the operation
The documentation for this class was generated from the following file:
- /var/lib/jenkins/workspace/upm-doc-stable/build-33/src/lcd/SSD1306.java