How to Interface With OLED 1.3 Inch LCD128x64




Introduction: How to Interface With OLED 1.3 Inch LCD128x64

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


OLED 1.3 inch is a monochrome graphic display module with a built-in 1.3 inch, 128X64 high-resolution display. OLED 1.3 inch 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 1: Pin Definition

  • SDA - Data Line
  • SCL - Clock Line

Step 2: Pin Connection

  • VCC to 5V or 3.3V
  • GND to GND
  • SCL to A5
  • SDA to A4

Step 3: Sample Source Code

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

Step 4: 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 5: Display Your Own Picture Into Arduino Readable Code

Go to here and download LCD Now, install into your computer and open it. Go to File > Load Image and choose your pic. Make sure you have already save your pic as monochrome bitmap .bmp before uploading into LCD Assistant or a box with a "unkown picture file extension (.jpg)" words will appear on your screen. Next, you have to click "save output" and save your picture to cpp file by adding ".cpp" at the end of your file name. Now open your saved .cpp file using word pad. Refer picture above for a better understanding.

Step 6: Results

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

Step 7: Videos

1 Person Made This Project!


  • Remote Control Contest

    Remote Control Contest
  • Fruits and Veggies Speed Challenge

    Fruits and Veggies Speed Challenge
  • Digital Fabrication Student Design Challenge

    Digital Fabrication Student Design Challenge



1 year ago

I open again and click u8glib file so there are many options what I click


2 years ago on Step 5

I precisely followed the steps given here, yet find that when it comes to getting the LCD to print any 128p x 64p(or less) monochrome bmp image(other than the one already provided in the code), a completely unrecognizable mix-match of pixels are turned on. In particular, I noticed that my array is about 4 times as wide and spans over about 2 times as many lines as the example provided here, this did not seem to change regardless of the size of the image(tried from 128p x 64p down to 50p x 25p) and shifting the placement of the image, of course, did nothing at all to solve the issue. Has anyone experienced anything like this? Any assistance is appreciated, thanks!