Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Displays & LEDs
  4. ›SSD1306 OLED Display
Step 8 of 17 in Displays and lightsPart of a learning path.
Next

How-to · Beginner · 3 min read

SSD1306 OLED Display

0.96 inch I2C Wiring and Code

By Geekobot Learning Team · Updated 24 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWiring an SSD1306 OLED (I2C)Draw text with the Adafruit SSD1306 libraryMicroPython on ESP32 or PicoSSD1306 vs SH1106: why your 1.3 inch screen looks shiftedMemory, speed and burn-in tipsTry itCommon mistakesFAQsParts and next steps
Short answer

The SSD1306 is the driver chip in most small monochrome OLED displays, such as the popular 0.96 inch 128x64 module. It connects over I2C (address 0x3C) or SPI, runs from 3.3 to 5 V on most modules, and needs no backlight, so it is crisp and low-power. Use the Adafruit SSD1306 or U8g2 library to draw text and graphics.

Key specs at a glance

Sizes
0.91 inch 128x32, 0.96 inch 128x64; 1.3 inch modules often use SH1106
Interface
I2C (4 pins) or SPI (6 to 7 pins)
I2C address
0x3C (some 0x3D)
Supply
3.3 to 5 V on most modules
Current
About 10 to 25 mA depending on lit pixels
Frame buffer
1 KB RAM for 128x64 (half of an Uno's RAM)
01

Wiring an SSD1306 OLED (I2C)

Check the pin order printed on your module: some read GND-VCC-SCL-SDA, others VCC-GND-SCL-SDA.

OLED pinArduino UnoESP32Pico
GNDGNDGNDGND
VCC5V or 3.3V3.3V3V3
SCLA5GPIO 22GP5
SDAA4GPIO 21GP4
GND
Arduino Uno:
GND
ESP32:
GND
Pico:
GND
VCC
Arduino Uno:
5V or 3.3V
ESP32:
3.3V
Pico:
3V3
SCL
Arduino Uno:
A5
ESP32:
GPIO 22
Pico:
GP5
SDA
Arduino Uno:
A4
ESP32:
GPIO 21
Pico:
GP4
02

Draw text with the Adafruit SSD1306 library

Install Adafruit SSD1306 and Adafruit GFX Library from the Library Manager.

Text on a 128x64 OLED · Arduino C++Verify & upload in Electrolark
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>

Adafruit_SSD1306 display(128, 64, &Wire, -1);   // -1 = no reset pin

void setup() {
  if (!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) {
    for (;;);                                    // not found
  }
  display.clearDisplay();
  display.setTextSize(2);
  display.setTextColor(SSD1306_WHITE);
  display.setCursor(0, 0);
  display.println("Hello!");
  display.setTextSize(1);
  display.println("Temp: 24.6 C");
  display.display();                             // push buffer to screen
}

void loop() {}
03

MicroPython on ESP32 or Pico

MicroPython includes an ssd1306 driver in many builds (or install it with mip). Create an I2C object, then oled = ssd1306.SSD1306_I2C(128, 64, i2c), call oled.text("Hello", 0, 0) and oled.show().

04

SSD1306 vs SH1106: why your 1.3 inch screen looks shifted

Many 1.3 inch OLEDs look identical but use the SH1106 driver, which has a 132-column memory. With the SSD1306 library they show a 2-pixel offset, noise along one edge, or nothing. Use the Adafruit SH110X library or U8g2's SH1106 constructor instead.

05

Memory, speed and burn-in tips

  • ✓The 128x64 buffer takes 1 KB, half an Arduino Uno's RAM. If your sketch crashes, use U8g2 in page mode, or an ESP32/Pico.
  • ✓Call display.display() only after you finish drawing a frame.
  • ✓Raise I2C speed to 400 kHz with Wire.setClock(400000) for smoother animation.
  • ✓OLED pixels age when lit for months. Dim the display, blank it when idle, or shift static content occasionally.
06

Try it: Display memory and refresh rate calculator

Change the values and the diagram and results update as you type.

07

Common mistakes to avoid

  • !Using the SSD1306 library on an SH1106 1.3 inch module.
  • !Running out of RAM on an Uno with a 128x64 buffer plus other libraries.
  • !Forgetting display.display(), so nothing appears.
  • !Assuming the pin order; GND and VCC swap between suppliers.
  • !Leaving a static screen on 24/7, which causes visible burn-in.
08

Frequently asked questions

What is the I2C address of an SSD1306 OLED?

0x3C on almost all 128x64 and 128x32 modules. Some have a jumper on the back for 0x3D. Run an I2C scanner if unsure.

Does an SSD1306 OLED work with 5 V Arduino boards?

Most modules include a regulator and accept 3.3 to 5 V on VCC, and work with Uno I2C pins. Check your module's listing; bare panels are 3.3 V only.

SSD1306 or 16x2 LCD: which should I use?

The OLED shows graphics, has deep blacks, wide viewing angles and draws little power. The 16x2 LCD has bigger text that is easier to read across a room and in sunlight.

Can I use two SSD1306 displays together?

Yes, if one is set to 0x3D, or by using two I2C buses (ESP32 and Pico have two) or a TCA9548A multiplexer.

Why does my OLED show random dots?

Usually a wrong driver (SH1106 vs SSD1306), a missing clearDisplay() call, or a wrong height setting (128x32 vs 128x64).

Parts for this guide

  • Dupont Jumper Wires (40 pcs)
    ₹49View
Shop OLED DisplaysShop TFT & IPS Displays

Terms in this guide

OLEDOrganic LED display: each pixel emits its own light, so there is no backlight and blacks are truly black.I2CInter-Integrated Circuit: a two-wire bus (SDA and SCL) that connects many devices by address.SPISerial Peripheral Interface: a fast bus with clock, data in, data out and a chip-select line per device.Frame bufferMemory that holds a full image of a display before it is sent to the screen.

Projects that use it

Put this into practice: 171 step-by-step builds in our project library use parts from this guide.

Beginner · 1–2 hoursSmoke alarm with OLED readoutView projectIntermediate · 2 hoursPlant waterer with moisture displayView projectIntermediate · 2 hoursGreenhouse humidity controllerView project
Browse all 171 projects

Keep learning

Concept explainerIntermediateI2C ExplainedI2C is a two-wire bus that lets one microcontroller talk to many sensors and displays using a data line (SDA) and a clock line (SCL).4 min read · Electronics FundamentalsHow-toBeginner16x2 LCD with I2CA 16x2 LCD shows two lines of 16 characters using the HD44780 controller.3 min read · Displays & LEDsComponent guideBeginnerESP32 GuideThe ESP32 is a low-cost 3.3 V microcontroller from Espressif with built-in Wi-Fi and Bluetooth, used for IoT devices, smart-home controllers and web dashboards.5 min read · Boards & MicrocontrollersComparisonBeginnerDHT11 vs DHT22DHT11 vs DHT22 compared: accuracy, range and sampling rate, plus wiring, pull-up, Arduino/ESP32 code and when to pick a BME280 or SHT31.3 min read · Sensors

Sources

  • SSD1306 128x64 dot-matrix OLED controller datasheet (Solomon Systech)
  • SH1106 datasheet (Sino Wealth)
  • Adafruit SSD1306 library documentation
  • U8g2 library reference

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWiring an SSD1306 OLED (I2C)Draw text with the Adafruit SSD1306 libraryMicroPython on ESP32 or PicoSSD1306 vs SH1106: why your 1.3 inch screen looks shiftedMemory, speed and burn-in tipsTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide1 item · ₹49

Dupont Jumper Wires (40 pcs)

Run itChange the inputs and watch the output
Hello!
Temp: 24.6 C

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question