

The Adafruit 1.27 inch 16-bit Color OLED w microSD Holder (Part ID: 1673) is a compact and versatile display module designed for high-quality graphical output. Featuring a 1.27-inch diagonal OLED screen, this module supports 16-bit color graphics, providing vibrant and sharp visuals. Additionally, it includes an integrated microSD card holder, enabling convenient storage and retrieval of data such as images, fonts, or other resources for display.
This module is ideal for applications requiring a small, high-resolution display, such as:








| Parameter | Value |
|---|---|
| Display Type | OLED |
| Screen Size | 1.27 inches (diagonal) |
| Resolution | 128 x 96 pixels |
| Color Depth | 16-bit (65,536 colors) |
| Interface | SPI |
| Operating Voltage | 3.3V to 5V |
| Current Consumption | ~25mA (typical) |
| microSD Card Support | Yes |
| Dimensions | 35.5mm x 30.5mm x 5mm |
The module has a total of 7 pins for interfacing. Below is the pinout description:
| Pin Name | Description |
|---|---|
| GND | Ground connection |
| VIN | Power input (3.3V to 5V) |
| 3V3 | 3.3V output (can be used to power other components) |
| CLK | SPI Clock (SCK) |
| MOSI | SPI Master Out Slave In (data input to the OLED) |
| CS | Chip Select (active low, used to select the OLED display) |
| RST | Reset (active low, used to reset the display) |
| DC | Data/Command (used to differentiate between data and command instructions) |
To use the Adafruit 1.27 inch OLED with an Arduino UNO, follow these steps:
Wiring: Connect the OLED module to the Arduino as shown below:
| OLED Pin | Arduino Pin |
|---|---|
| GND | GND |
| VIN | 5V |
| CLK | D13 |
| MOSI | D11 |
| CS | D10 |
| RST | D9 |
| DC | D8 |
Install Libraries:
Example Code: Use the following example code to display a simple graphic on the OLED:
// Include necessary libraries
#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_SSD1351.h> // OLED driver library
#include <SPI.h> // SPI communication library
// Define OLED pins
#define OLED_CS 10 // Chip Select pin
#define OLED_RST 9 // Reset pin
#define OLED_DC 8 // Data/Command pin
// Create an instance of the display
Adafruit_SSD1351 display = Adafruit_SSD1351(128, 96, &SPI, OLED_CS, OLED_DC, OLED_RST);
void setup() {
// Initialize the display
display.begin();
display.fillScreen(SSD1351_BLACK); // Clear the screen with black color
// Draw a red rectangle
display.fillRect(10, 10, 50, 30, SSD1351_RED);
// Display text
display.setTextColor(SSD1351_WHITE); // Set text color to white
display.setCursor(10, 50); // Set text position
display.print("Hello, OLED!"); // Print text to the screen
}
void loop() {
// Nothing to do here
}
SD.h to access files on the card.The display does not turn on:
display.begin() function is called in the setup.Graphics are distorted or not displayed correctly:
microSD card is not detected:
By following this documentation, you can effectively integrate and utilize the Adafruit 1.27 inch 16-bit Color OLED w microSD Holder in your projects.