HOME    PROJECTS    LIBRARIES    RESOURCES    LINKS    CONTACT  
Select category:
Arduino
  DS1302
  DS1307
  DS3231
  DS3234
  KeyPad
  LCD5110_Basic
  LCD5110_Graph
  LCD5110_SPIflash
  LEDmatrix7219
  MCP4725
  MGLCD
  OLED_I2C
  OLED_SPIflash
  OLED_StatusIcons
  relay8
  SPIflash
  SPIflash_Audio
  tinyFAT
  URTouch
  UTFT
  UTFT_Buttons
  UTFT_Geometry
  UTFT_SPIflash
  UTFT_tinyFAT
  WiiChuck
chipKit
ESP8266/32
TI LaunchPad

IF YOU LIKE,
and use any of my projects or libraries, and would like to encourage further development you can donate through PayPal here:

Rather donate hardware directly? Then click here.




Library: OLED_I2C

This library has been made to make it easy to use 128x32 and 128x64 pixel OLED displays based on the SSD1306 controller chip with an Arduino, chipKit, ESP8266 or ESP32.

OLED DisplayOLED DisplayOLED Display

This library will default to I2C Fast Mode (400 KHz) when using the hardware I2C interface.

 IMPORTANT: 

There are some important changes from v1.xx. If you are upgrading from an older version of the library you should read about the changes in the manual.

The library has not been tested in combination with the Wire library and I have no idea if they can share pins. Do not send me any questions about this. If you experience problems with pin-sharing you can move the displays SDA and SCL pins to any available pins on your development board. This library will in this case fall back to a software-based, TWI-/I2C-like protocol which will require exclusive access to the pins used.

Download:

OLED_I2C.zip
(Filesize is 514.32 KiB. Downloaded 62066 times)


Some demos showcasing most of the functions are included in the download.
This is a multi-platform library that will work with several different development board types.

Latest changes:
v2.0023 Sep 2018added support for 128x32 pixel displays
  added getDisplayHeight()
  added rotateDisplay()
  added sleepMode()
  fixed warnings regarding deprecated conversions when using print()
  removed unused variable declarations
  changed the way the screen buffer is allocated
  added more examples and grouped them into 128x32 and 128x64 resolution
v2.1009 Feb 2019added support for ESP8266 (only tested on Wemos/Lolin D1 Mini)
  added support for ESP32 (only tested on Heltec WiFi Kit 32)
For a full list of changes please see the file version.txt included in the download.

Demo Video:

CLICK HERE TO VIEW

Compatibility:

WorkingArduino Duemilanove w/ATmega328
WorkingArduino Uno
Not tested, UnsupportedArduino Leonardo
WorkingArduino Mega
WorkingArduino Mega2560
WorkingArduino Due
Not tested, UnsupportedBobuino
Not workingTeensy 3.1
Working = Working   Not working: Not working
Not tested, Unsupported = Not tested, Unsupported

Manual:

CLICK HERE TO VIEW
The manual is included in the download

License:

By downloading the library you accept the following license:
Creative Commons BY-NC-SA Logo
Creative Commons (CC BY-NC-SA 3.0)
View SummaryView Legal