

The 1.3-inch OLED display, manufactured by Arduino (Part ID: UNO), is a compact, high-resolution organic light-emitting diode display. It delivers vibrant colors, deep blacks, and excellent contrast, making it ideal for applications requiring clear and visually appealing output. This display is commonly used in small electronic devices, DIY projects, and embedded systems for displaying text, graphics, and animations.








The following table outlines the key technical details of the 1.3-inch OLED display:
| Parameter | Specification |
|---|---|
| Display Type | OLED (Organic Light-Emitting Diode) |
| Screen Size | 1.3 inches |
| Resolution | 128 x 64 pixels |
| Interface | I2C (Inter-Integrated Circuit) |
| Operating Voltage | 3.3V - 5V |
| Current Consumption | ~20mA (typical) |
| Viewing Angle | >160° |
| Operating Temperature | -40°C to 85°C |
| Dimensions | 35mm x 35mm x 4mm |
The 1.3-inch OLED display typically has a 4-pin interface for I2C communication. The pin configuration is as follows:
| Pin | Name | Description |
|---|---|---|
| 1 | GND | Ground connection |
| 2 | VCC | Power supply (3.3V or 5V) |
| 3 | SCL | Serial Clock Line for I2C communication |
| 4 | SDA | Serial Data Line for I2C communication |
Connect the Pins:
GND pin of the OLED to the ground of your microcontroller.VCC pin to a 3.3V or 5V power source, depending on your system.SCL pin to the I2C clock pin of your microcontroller (e.g., A5 on Arduino UNO).SDA pin to the I2C data pin of your microcontroller (e.g., A4 on Arduino UNO).Install Required Libraries:
Adafruit_GFX and Adafruit_SSD1306 libraries. These libraries provide functions for controlling the OLED display.Upload Code:
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
// Define the OLED display width and height
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
// Create an instance of the SSD1306 display object
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);
void setup() {
// Initialize the display
if (!display.begin(SSD1306_I2C_ADDRESS, 0x3C)) {
// If the display fails to initialize, print an error message
Serial.println(F("SSD1306 allocation failed"));
for (;;); // Halt the program
}
// Clear the display buffer
display.clearDisplay();
// Set text size and color
display.setTextSize(1); // Text size multiplier
display.setTextColor(SSD1306_WHITE);
// Display a message
display.setCursor(0, 0); // Set cursor position
display.println(F("Hello, OLED!")); // Print text
display.display(); // Update the display
}
void loop() {
// No actions in the loop for this example
}
0x3C. Verify this in the datasheet or by scanning I2C devices.Adafruit_GFX and Adafruit_SSD1306 libraries for optimal performance.Display Not Turning On:
GND and VCC).Flickering or Unstable Display:
Text or Graphics Not Displaying:
Adafruit_GFX and Adafruit_SSD1306 libraries are installed.display.display() function is called after drawing operations.I2C Communication Errors:
SCL and SDA connections.SCL and SDA lines if necessary.Q: Can I use the 1.3 OLED with a 3.3V microcontroller?
A: Yes, the OLED is compatible with both 3.3V and 5V systems.
Q: How do I display custom graphics?
A: Use the Adafruit_GFX library to draw shapes, bitmaps, and custom graphics. Refer to the library documentation for examples.
Q: What is the maximum refresh rate of the display?
A: The refresh rate depends on the I2C communication speed, typically up to 400kHz.
Q: Can I use multiple OLEDs on the same I2C bus?
A: Yes, but each OLED must have a unique I2C address. Some modules allow address modification via solder jumpers.
By following this documentation, you can effectively integrate and use the 1.3-inch OLED display in your projects.