
On Linux it is usually found at home folder > Arduino > libraries. This folder is usually found at Documents > Arduino > libraries on Windows systems. These two libraries can be also be downloaded from github (you need both):I will provide the links in the description below.The display library: GFX library: downloaded, copy the Adafruit_SSD1306-master folder from the downloaded zipped file into the Arduino libraries folder.
SSD1306 ARDUINO I2C EXAMPLE INSTALL
Go to the "Library manager" and search "adafruit_SSD1306" and "adafruit_gfx"Select the latest version and hit the Install button.Once installed you can use these libraries in your program.
SSD1306 ARDUINO I2C EXAMPLE DOWNLOAD
To control the OLED display you’ll need the "adafruit_GFX.h" library and the "adafruit_SSD1306.h" library.There are two ways you can download and install the library to your Arduino IDE. So, I am going to use the AdaFruit library in this tutorial. In past I have used the "u8glib library" but I find the AdaFruit library very easy to understand and use in our projects. There are several libraries available to control thesedisplays. Even though they are small they can be very useful in any electronic projects. Just have a look at this and see how small it is. They are made of 128 x 32/64 individual OLED pixels and do not require any back-light. We will talk about it in depth when we hook up multiple displays to an Arduino in the later section of this tutorial. Just by unsoldering the 0Ohm resistor from one side and hoking it up to the other side or just by putting a global solder we can change the address.

This unit has a configurable address between 0x78 and 0x7A. The trick is to have a configurable address on your display. Sometimes we need to use 2 displays in our projects.Operation voltage is between 3v to 5v but, it is best to use the guidance from the manufacturer's datasheet.The on-board pins can be in different order, so always triple check before hooking it up to your project.The data connection is I2C (I☬, IIC or Inter-Integrated Circuit) and this interface is also called TWI (Two Wire Interface). The display connects to Arduino using only four wires – two for power (VCC and GND) and two for data (serial clock SCL andserial data SDA), making the wiring very simple.


Lets have a closer at these two displays.Īt the back of these displays there are heaps of SMD capacitors and resistors soldered on-board but, since its an I2C device we only care about these 2 pins (SCL and SDA)
