1.3″ 128×64 White OLED Display – I²C or SPI

95,00 DH

SKU: 0254-A Categories: ,

Description

1.3″ 128×64 White OLED Display – I²C or SPI

This 1.3-inch monochrome OLED display shows text, values, icons, and small graphics with excellent readability. Its 128 × 64 pixel resolution, high contrast, and lack of a backlight make it a compact option for Arduino, ESP32, ESP8266, Raspberry Pi, and STM32 projects.
The product is available in two variants:

  • 4-pin I²C: simple wiring using only two communication lines.
  • 7-pin SPI: faster communication, suitable for animations and frequent updates.

Technical Specifications

  • Technology: monochrome OLED
  • Display color: white
  • Background: black
  • Diagonal: 1.3 inches
  • Resolution: 128 × 64 pixels
  • Common controller: SH1106
  • Viewing angle: greater than 160°
  • Approximate active area: 29.42 × 14.7 mm
  • Module voltage: typically 3.3 to 5 V DC
  • Low power consumption
  • No backlight required
  • Compatible with the Arduino U8g2 library
  • Approximate dimensions: 35.5 × 33.7 mm

Modules of this 1.3-inch format commonly use the SH1106 controller and are available in 4-pin I²C and 7-pin SPI versions. Module specifications

Variant Comparison

Feature I²C – 4 pins SPI – 7 pins
Pins GND, VCC, SCL, SDA GND, VCC, SCK, SDA, RES, DC, CS
Number of signals 2 5
Wiring Simpler More extensive
Speed Suitable for typical display use Faster
Recommended use Sensors and value display Animations and frequent refreshes

On the SPI variant, the pin marked SDA is the MOSI data line, not an I²C connection.

Applications

  • Displaying sensor data
  • Weather stations
  • Clocks and timers
  • Configuration menus
  • Counters and measuring instruments
  • IoT projects
  • Robotics
  • Battery indicators
  • Compact user interfaces
  • Displaying logos and small graphics

Arduino Mini Tutorial – 4-Pin I²C Variant

Wiring with Arduino Uno or Nano
OLED I²C Arduino Uno/Nano
GND GND
VCC 5V
SCL A5
SDA A4

The I²C address is usually 0x3C, although some batches may use 0x3D. SH1106 I²C guide

Arduino I²C Code

Install the U8g2 library through the Arduino IDE Library Manager, then upload this program:

#include <Wire.h>
#include <U8g2lib.h>

U8G2_SH1106_128X64_NONAME_F_HW_I2C oled(
  U8G2_R0,
  U8X8_PIN_NONE
);

void setup() {
  oled.begin();
}

void loop() {
  oled.clearBuffer();

  oled.setFont(u8g2_font_ncenB10_tr);
  oled.drawStr(12, 18, "Micro-Planet");

  oled.setFont(u8g2_font_6x12_tr);
  oled.drawStr(24, 38, "OLED 1.3\"");
  oled.drawStr(22, 54, "128 x 64 I2C");

  oled.sendBuffer();
  delay(1000);
}

Arduino Mini Tutorial – 7-Pin SPI Variant

Wiring with Arduino Uno or Nano
OLED SPI Arduino Uno/Nano
GND GND
VCC 5V
SCK / CLK D13
SDA / MOSI D11
RES / RST D8
DC D9
CS D10
Arduino SPI Code
#include <SPI.h>
#include <U8g2lib.h>

U8G2_SH1106_128X64_NONAME_F_4W_HW_SPI oled(
  U8G2_R0,
  10,  // CS
  9,   // DC
  8    // RESET
);

void setup() {
  oled.begin();
}

void loop() {
  oled.clearBuffer();

  oled.setFont(u8g2_font_ncenB10_tr);
  oled.drawStr(12, 18, "Micro-Planet");

  oled.setFont(u8g2_font_6x12_tr);
  oled.drawStr(24, 38, "OLED 1.3\"");
  oled.drawStr(22, 54, "128 x 64 SPI");

  oled.drawFrame(5, 5, 118, 54);
  oled.sendBuffer();

  delay(1000);
}

Troubleshooting

If the screen remains black:

  • Check that the selected variant matches the wiring and code.
  • Use an SH1106-compatible library, not only an SSD1306 library.
  • For the I²C version, check address 0x3C or 0x3D.
  • Check the pin order printed on your module.
  • For the SPI version, check the CS, DC, and RESET connections.
  • Use short wires and a common ground.
  • Make sure the USB cable can supply sufficient power to the circuit.

Precautions

  • Turn off the power before changing the wiring.
  • Check the accepted voltage of your batch before using 5 V.
  • Avoid displaying the same image at high brightness for very long periods to reduce OLED pixel burn-in.
  • Do not apply pressure to the glass panel.
  • Handle the module by its edges and protect it from moisture.

Additional information

Version

I2C, SPI

Thank you for your loyalty!

EN