Introduction
If you are seeing this tutorial directly, then you can start from beginning where I have included the step-wise images for making the breadboard circuit here "128X64 OLED display Arduino Tutorial" . Now, as you have already completed the circuit, its time to program and test it live. I have divided the process into multiple lessons for easing up the tutorial. So lets begin with part-1. We need to first install the library of the "Adafruit Oled Library" So follow the below steps:
- Go to this url : https://github.com/adafruit/Adafruit_SSD1306 and download the zip folder from github.

Adding-the-Adafruit-OLED-library-in-Arduino-IDE-and-programming-Arduino-Leonardo-Pro-Micro-Part-1 (1)
2. Now, open your Arduino IDE and then goto Sketch->Include Library->Add .zip Library and click there.

Adding-the-Adafruit-OLED-library-in-Arduino-IDE-and-programming-Arduino-Leonardo-Pro-Micro-Part-1 (2)
3. Now browse to your downloaded folder and select the zip library which you downloaded and press open.

Adding-the-Adafruit-OLED-library-in-Arduino-IDE-and-programming-Arduino-Leonardo-Pro-Micro-Part-1 (3)
4. You will get notification on the bottom right corner of the Arduino IDE about "successful adding of library". After that repeat the same process for this library : https://github.com/adafruit/Adafruit-GFX-Library .
5. After adding both the libraries, close your arduino IDE After that and browse to This "PC->Documents->Arduino->libraries->Adafruit_SSD1306-master" folder.

Adding-the-Adafruit-OLED-library-in-Arduino-IDE-and-programming-Arduino-Leonardo-Pro-Micro-Part-1 (4)
6. Now right click on "Adafruit_SSD1306.h" file and click on "open with notepad++" or any other code editor. (Do not use normal notepad. It will be difficult to edit in it).

Adding-the-Adafruit-OLED-library-in-Arduino-IDE-and-programming-Arduino-Leonardo-Pro-Micro-Part-1 (5)
7. After that, simply go to line number 73 and uncomment the line number 73 #define SSD1306_128_64 and comment the line number 74 #define SSD1306_128_32. We are doing this because, we are using "128x64 OLED display" and the default header in library should be same.
But by default this library has setting of default library for "128x32". We are just changing it. After changing, save the file.

Adding-the-Adafruit-OLED-library-in-Arduino-IDE-and-programming-Arduino-Leonardo-Pro-Micro-Part-1 (6)
That's it for this lesson. In the next lesson we will continue this lesson and program our breadboard circuit of "Arduino Leonardo Pro Micro" with "128X64 OLED display." Click on the next chapter below.
No Comments