This is a driver for the SSD1306 based 128x64 pixel OLED display running on the Arduino/ESP8266 platform.
This is a driver for the SSD1306 based 128x64 pixel OLED display running on the Arduino/ESP8266 platform.
Can be used with either the I2C or SPI version of the display
You can either download this library as a zip file and unpack it to your Arduino/libraries folder or (once it has been added) choose it from the Arduino library manager.
You can either download this library as a zip file and unpack it to your Arduino/libraries folder or (once it has been added) choose it from the Arduino library manager.
## Credits
## Credits
Many thanks go to Fabrice Weinberg (@FWeinb) for optimizing and refactoring the UI library.
Many thanks go to Fabrice Weinberg (@FWeinb) for optimizing and refactoring the UI library.
The init sequence for the SSD1306 was inspired by Adafruits library for the same display.
The init sequence for the SSD1306 was inspired by Adafruits library for the same display.
The SPI code was inspired by somhi/ESP_SSD1306 and the Adafruit library
## Usage
## Usage
...
@@ -187,3 +189,9 @@ This frame demonstrates the text alignment. The coordinates in the frame show re
...
@@ -187,3 +189,9 @@ This frame demonstrates the text alignment. The coordinates in the frame show re
This shows how to use define a maximum width after which the driver automatically wraps a word to the next line. This comes in very handy if you have longer texts to display.
This shows how to use define a maximum width after which the driver automatically wraps a word to the next line. This comes in very handy if you have longer texts to display.