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 Assistant.zip. 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.