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
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 or a chipKit.

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 451.00 KiB. Downloaded 21764 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.

Changes:
v1.001 Mar 2015initial release
v1.0107 Mar 2015fixed a bug in the OLED_I2C_3D_Cube example
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

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