Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
OLED Class Reference
Representation of a 128x64 pixels, SSD1306 compatibel OLED display. More...
#include <OLED.h>
Public Member Functions | |
| OLED () | |
| ssd1306 compatible device of 128x64 pixels OLED display. | |
| void | init () |
| Initialisere display and clears it. | |
| void | clear () |
| Clears the display. | |
| void | newLine () |
| Makes a newline by incrementing charY and assigning xOffset to charX if charY becomes 8 the display screen is scrolled one line and charY is decremented to 7. | |
| void | drawChar (uint8_t x, uint8_t y, uint8_t chr) |
| Put a char on display. | |
| void | puts (string str) |
| Writes a string at charX, charY position. | |
| uint8_t | printf (const char *frmt,...) |
| printf - the old classic. | |
| void | scroll () |
| Scroll the display one line. | |
Detailed Description
Representation of a 128x64 pixels, SSD1306 compatibel OLED display.
Definition at line 313 of file OLED.h.
Constructor & Destructor Documentation
| OLED | ( | ) |
Member Function Documentation
| void drawChar | ( | uint8_t | x, |
| uint8_t | y, | ||
| uint8_t | chr | ||
| ) |
Put a char on display.
The font represent display characters as 6x8 pixels areas (6 horizontal).
The font does actual contain 5 colums - the six'd makes characters
seperation. Character values 0, 0x20, and 0xff are bitpatterns with
all null pixels (like space)
- Parameters:
-
x horizontal pixelwise position, range [0,displayWidth - 6] y vertical position, range [0,7] chr character to put on display
| void init | ( | ) |
| void newLine | ( | ) |
| uint8_t printf | ( | const char * | frmt, |
| ... | |||
| ) |
| void puts | ( | string | str ) |
Generated on Mon Jul 18 2022 21:57:34 by
1.7.2