Thanks for Visiting here

OLED I2C DISPLAY WITH ARDUINO Tutorial
OLED I2C DISPLAY WITH ARDUINO Tutorial |
Since this OLED works on I2C Communication, we have to connect
only 4 pins to Arduino
OLED has Sck (i.e. clock), SDA (i.e. Data) and Power pins i.e VCC and Ground.
On the Arduino UNO Board, we have SDA at A4 and SCK at A5.
Connections for OLED to Arduino
- Vcc - 5V
- Gnd - Gnd
- SDA - A4
- SCK - A5
I2C Scanner
we know each I2C device has a different Hexadecimal Address.
since this OLED uses the I2C communication protocol, we have to find the I2C address for the display.
/* I2C Address Finder
* for " Arduino LCD I2C Tutorial| How to Program LCD Display"
* subscribe for more arduino Tuorials and Projects
https://www.youtube.com/channel/UCM6rbuieQBBLFsxs...
*/#include < wire.h>
void setup()
{
Serial.begin (115200);
while (!Serial)
{
}Serial.println ();
Serial.println ("I2C scanner. Scanning ...");
byte count = 0;
pinMode(13,OUTPUT);
digitalWrite(13,HIGH);
Wire.begin();
for (byte i = 1; i < 120; i++)void loop() {}
Code Parts
then Include these 4 Libraries in the header
#include <spi.h>
#include <wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>