Introduction: How to Interface With OLED 0.96inch LCD128x64

This tutorial is going to teach you some basics on using OLED 0.96inch LCD128x64.

Step 1: Introduction


OLED 0.96 inch is a monochrome graphic display module with a built-in 0.96 inch, 128X64 high-resolution display. OLED 0.96inch is able to work despite the absence of backlight. In a dark environment, contrast of OLED display is higher than LCD display. This device is I^2C or SPI compatible. Due to its capability in displaying, it is often used in various application for instances, smart watch, MP3, function cellphone, portable health device and many others.


  • Working Voltage: 3.3V (suggested)
  • Compatible Interfaces: I^2C or SPI
  • Low power consumption, 0.06W when working normally
  • Working temperature: -30ᵒC to 70ᵒC

Step 2: Pin Definition

Step 3: Sample Hardware Installation

Step 4: Sample Source Code

To get the result, please download the sample source code attached below and upload it into Arduino.

*Kindly download the U8glib library which is written for many types of LCD display.

Step 5: How to Use U8glib Library

After downloading the U8glib library and move the extracted file to the desired Arduino's libraries, now restarting the Arduino software by quitting the entire software and open the software once again. Now, you should be able to see the same thing in the 'File' option.

Users can simply try those written coding and construct the circuit according to the coding. Later users can upload those coding into Arduino and see how the circuit works. Feel free to try out!

Step 6: To Display Your Own Picture Into Arduino Readable Code, Here Are the Steps...

1. Load your picture into GIMP (kindly download the GIMP software by pressing the word "GIMP" and it will direct you to the website for downloading purpose).

2. Convert it into a indexed bitmap (you can find this option in "Mode" under "Image" option. Then choose "2 levels, black & white", by using dithering).

3. Next, export as XBM (.xbm extension).

4. After that, go to the file location of the .xbm extension. You can see a file with name ends with ".xbm" for instances "mybotic.xbm". Kindly rename this file with its name ends with ".txt" for example "mybotic.txt".

5. Please refer to the picture above.

6. Please refer to the picture above.

Step 7: Results

The changing of patterns shown on OLED LCD display while OLED is being connected to power supplies.

Step 8: Video