Electronics

OLED 1.3 Inch Module Display White SH1106

Out Of Stock

1

Description

The 1.3 inch OLED Display with the SH1106 Driver, 128×64 resolution, has an i2C interface. SH1106 has 128 segments, 64 commons that can support a maximum display resolution of 128 X 64 and designated for a common cathode type OLED panel. SH1106 has integrated contract control, a display RAM oscillator, and an efficient DC to DC converter, which reduces the number of external components and power consumption. so the I2C interface not only supports writing data to the display but also reading data back from the display, making it possible to have a full 128x64 graphics display without needing any RAM buffer. This allows you to provide a full graphics display to projects based on the microcontrollers like ATtiny85.

Specifications:

  • Diagonal Screen Size:1.3"
  • Driver: SH1106 
  • Number of Pixels:128 x 64
  • Color Depth:Monochrome (Write)
  • Dimension:35.4 x33.5x 4.3 mm
  • Power: 0.06W Max
  • Viewing Angle: >160 Degree
  • Duty:1/32
  • Brightness ( cd/m2):150 (Typ) @ 5V
  • Interface: I2C
  • Arduino Library: by Adafruit SH110 library & U8g library
  • Raspberry Pi Library: WiringPi

 

OLED 1.3 Inch Module Display White SH1106 Pinout:

SH1106 OLED I2C Display OLED Pin Pi P1 Header Pin Raspberry Pi Pin
VCC 1 2 5V
GND 3 6 GND
SCL 5 5 SCL
SDA 6 3 SDA


For other Arduino boards:

  • Nano: SDA (A4); SCL (A5)
  • MEGA: SDA (20); SCL (21)
  • Leonardo: SDA (20); SCL (21)


OLED 1.3 i2c Connections with Arduino UNO:



 

 

Arduini Code for OLED 1.3 i2c:

first, you will need to download this library

u8glib Library for Arduino  Version 1.17 

 

#include "U8glib.h" // U8glib library for the OLED you download below
#include // Set Wire library for I2C communication

U8GLIB_SH1106_128X64 u8g(13, 11, 10, 9, 8); // D0=13, D1=11, CS=10, DC=9, Reset=8

void draw(void)
{
u8g.setFont(u8g_font_profont15r); // Set display font 1
u8g.drawStr(1, 12, "14CORE |i2C TEST CODE");//
u8g.setFont(u8g_font_profont29r); // Set display font 2
u8g.println("Line 1 i2C OLED");
u8g.setPrintPos(35, 45); // set print position
u8g.println("Line 2 i2C OLED");
u8g.drawRFrame(15, 20, 100, 30, 10); // Set to draws frame with rounded edges
}

void setup(void)
{
Serial.begin(9600);
Serial.print("14CORE | Test for Waveshare 4 Wire | 3 Wire | I2C OLED Display Module");
Serial.print("---------------------------------------------------------------------");
delay(1000); //Set delay 1 Second
}

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

delay(1000); //Set delay 1 second
}