Guide for I2C OLED Display with Arduino
This article shows How to use I2C Display with Arduino.
Required Things:
- Arduino UNO
- I2C OLED
- Jumper cable
- Bread board
Pin Wiring:
Pin | Wiring to Arduino Uno |
Vin | 5V |
GND | GND |
SCL | A5 |
SDA | A4 |
Libraries:
- Open Arduino IDE
- Open Sketch - Include Libraries - Manage Libraries (OR) Press ctrl + shift + i
1.Type “SSD1306” in the search box and install the SSD1306 library from Adafruit.
2. After installing the SSD1306 library from Adafruit, type “GFX” in the search box and install the library.
3. After installing the libraries, restart your Arduino IDE.
upload this code for Know Your Display Model:
Download code Here:
After check your model and upload this code: