> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/wokwi/wokwi-docs/llms.txt
> Use this file to discover all available pages before exploring further.

# SSD1306 OLED Display

> Monochrome 128x64 OLED display with I2C interface for Arduino and embedded projects

Monochrome 128x64 OLED display with I2C interface

![SSD1306](https://raw.githubusercontent.com/wokwi/wokwi-boards/main/boards/ssd1306/board.svg)

<Note>
  The default I2C address of the SSD1306 module is 0x3c (60). Some modules have a different address (0x3d), which can be changed by editing diagram.json and setting the `i2cAddress` attribute to "0x3d".
</Note>

## Pin names

<ParamField path="GND" type="pin">
  Ground connection

  **Arduino Uno pin:** GND
</ParamField>

<ParamField path="VCC" type="pin">
  Supply voltage

  **Arduino Uno pin:** 5V
</ParamField>

<ParamField path="SCL" type="pin">
  I2C clock line

  **Arduino Uno pin:** A5
</ParamField>

<ParamField path="SDA" type="pin">
  I2C data line

  **Arduino Uno pin:** A4
</ParamField>

## Attributes

<ParamField path="i2cAddress" type="string" default="0x3c">
  I2C address of the display. Can be set to "0x3d" for modules with alternate addressing.
</ParamField>

## Using in Arduino

You can choose between several SSD1306 Arduino libraries:

* [Adafruit SSD1306](https://wokwi.com/projects/344892392214626898)
* [ssd1306](https://wokwi.com/projects/344894074741850707)
* [lcdgfx](https://github.com/lexus2k/lcdgfx)
* [U8glib](https://github.com/olikraus/u8glib)
* [U8g2](https://github.com/olikraus/u8g2) (also U8x8)
* [SSD1306Ascii](https://github.com/greiman/SSD1306Ascii)
* [Tiny4kOLED](https://www.arduino.cc/reference/en/libraries/tiny4koled/) - for ATtiny85 users

<Note>
  All the above libraries are available on Wokwi.
</Note>

## Simulator examples

* [SSD1306 Snake Game](https://wokwi.com/projects/296135008348799496) (using Adafruit SSD1306)
* [ATtiny85 Digital Temperature + Humidity on SSD1306](https://wokwi.com/projects/292900020514980360)
* [U8glib Progress Bar](https://wokwi.com/projects/300867986768527882)
* [SSD1306Ascii Fonts](https://wokwi.com/projects/291197274604700168)
* [Adafruit SSD1306 Showcase](https://wokwi.com/projects/344892392214626898)
* [U8g2 Menu](https://wokwi.com/projects/291572875238834696)
