|
1 | | -Build Status: [](https://travis-ci.org/squix78/esp8266-oled-ssd1306) |
2 | | - |
3 | | -# esp8266-oled-ssd1306 |
| 1 | +esp8266-oled-ssd1306 [](https://travis-ci.org/squix78/esp8266-oled-ssd1306) |
| 2 | +============ |
4 | 3 |
|
5 | 4 | This is a driver for the SSD1306 based 128x64 pixel OLED display running on the Arduino/ESP8266 platform. |
6 | 5 |
|
@@ -182,15 +181,15 @@ uint16_t getStringWidth(String text); |
182 | 181 | // Specifies relative to which anchor point |
183 | 182 | // the text is rendered. Available constants: |
184 | 183 | // TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER, TEXT_ALIGN_RIGHT, TEXT_ALIGN_CENTER_BOTH |
185 | | -void setTextAlignment(SSD1306_TEXT_ALIGNMENT textAlignment); |
| 184 | +void setTextAlignment(OLEDDISPLAY_TEXT_ALIGNMENT textAlignment); |
186 | 185 |
|
187 | 186 | // Sets the current font. Available default fonts |
188 | 187 | // ArialMT_Plain_10, ArialMT_Plain_16, ArialMT_Plain_24 |
189 | 188 | // Or create one with the font tool at http://oleddisplay.squix.ch |
190 | 189 | void setFont(const char* fontData); |
191 | 190 | ``` |
192 | 191 |
|
193 | | -## Ui Library (SSD1306Ui) |
| 192 | +## Ui Library (OLEDDisplayUi) |
194 | 193 |
|
195 | 194 | The Ui Library is used to provide a basic set of Ui elements called, `Frames` and `Overlays`. A `Frame` is used to provide |
196 | 195 | information the default behaviour is to display a `Frame` for a defined time and than move to the next. The library also provides an `Indicator` that will be updated accordingly. An `Overlay` on the other hand is a pieces of information (e.g. a clock) that is displayed always at the same position. |
@@ -300,10 +299,10 @@ void nextFrame(); |
300 | 299 | void previousFrame(); |
301 | 300 |
|
302 | 301 | // State Info |
303 | | -SSD1306UiState* getUiState(); |
| 302 | +OLEDDisplayUiState* getUiState(); |
304 | 303 |
|
305 | 304 | // This needs to be called in the main loop |
306 | | -// the returned value it the remaining time (in ms) |
| 305 | +// the returned value is the remaining time (in ms) |
307 | 306 | // you have to draw after drawing to keep the frame budget. |
308 | 307 | int8_t update(); |
309 | 308 | ``` |
|
0 commit comments