Electorials Electronics
Published © GPL3+

Project 011: Arduino 1.3" I2C White OLED Display Project

This beginner Arduino project using an OLED display is perfect for any graphical projects or projects involving visuals of data or images.

BeginnerProtip12 minutes19,359
Project 011: Arduino 1.3" I2C White OLED Display Project

Things used in this project

Hardware components

1.3'' i2c White OLED
×1
Arduino UNO
Arduino UNO
You could use any other Arduino board as well. The Seeeduino v4.2 is used in this example.
×1
Jumper wires (generic)
Jumper wires (generic)
4 Male to Female Jumper Wires.
×4
USB-A to B Cable
USB-A to B Cable
Depends on the Arduino.
×1
NextPCB
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Circuit Diagram

Schematics

Code

Arduino 1.3" i2c White OLED Display Project Code

C/C++
#include "U8glib.h"
U8GLIB_SH1106_128X64 u8g(U8G_I2C_OPT_NONE);

void draw(void) {
  u8g.setFont(u8g_font_profont12);
  u8g.setPrintPos(0, 10);
  u8g.print("This is the 1.3\"");
  u8g.setPrintPos(0, 25);
  u8g.print("White i2c OLED from");
  u8g.setPrintPos(0, 40);
  u8g.print("ICStation.com.");
}

void draw2(void) {
  u8g.setFont(u8g_font_profont12);
  u8g.setPrintPos(0, 10);
  u8g.print("Check out the project");
  u8g.setPrintPos(0, 25);
  u8g.print("and review on");
  u8g.setPrintPos(0, 40);
  u8g.setFont(u8g_font_profont10);
  u8g.print("electorials.weebly.com.");
}

void setup(void) {
}

void loop(void) {
  u8g.firstPage();
  do {
    draw();
  } while (u8g.nextPage() );
  delay(3500);
  u8g.firstPage();
  do {
    draw2();
  } while (u8g.nextPage());
  delay(3500);
}

Credits

Electorials Electronics

Electorials Electronics

85 projects • 63 followers
I'm an electronic hobbyist interested in anything, from Arduino to drones. I plan to educate people with the content on my website.

Comments