HOME    PROJECTS    LIBRARIES    RESOURCES    LINKS    CONTACT  
Select category:
Arduino
chipKit
  DS1307
  DS3231
  DS3234
  KeyPad
  LCD5110_Basic
  LCD5110_Graph
  LCD5110_SPIflash
  LEDmatrix7219
  MCP4725
  MGLCD
  OLED_I2C
  OLED_SPIflash
  OLED_StatusIcons
  relay8
  SPIflash
  URTouch
  UTFT
  UTFT_Buttons
  UTFT_Geometry
  UTFT_SPIflash
  WiiChuck
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 64541 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

Nice to know:

If you are using a chipKit Uno32 or uC32 and you want to use the hardware I2C interface you must remember to set the JP6 and JP8 jumpers to the I2C position (closest to the analog pins).

Compatibility:

WorkingchipKit Uno32
WorkingchipKit uC32
WorkingchipKit Max32
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