# Libraries for the SH1107 and SH1106G OLED drivers

**URL:** <https://forum.xod.io/t/libraries-for-the-sh1107-and-sh1106g-oled-drivers/6091>\
**Category:** Look What I’ve Done\
**Created:** [May 29, 2022, 5:23pm UTC](https://forum.xod.io/t/libraries-for-the-sh1107-and-sh1106g-oled-drivers/6091 "2022-05-29T17:23:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wayland](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/wayland/32/1590_2.png) [@wayland](https://forum.xod.io/u/wayland)\
**Post date:** [May 29, 2022, 5:23pm UTC](https://forum.xod.io/t/libraries-for-the-sh1107-and-sh1106g-oled-drivers/6091/1 "2022-05-29T17:23:34Z")

</div>

I’ve wrapped the Adafruit Sh110x library to provide XOD support for the SH1106G and SH1107 OLED drivers (I2C only):

- [wayland/sh1106g-oled-i2c — XOD](https://xod.io/libs/wayland/sh1106g-oled-i2c/)
- [wayland/sh1107-oled-i2c — XOD](https://xod.io/libs/wayland/sh1107-oled-i2c/)

I’ve tested the sh1107-oled-i2c library using a [Pimoroni Mono OLED Breakout (1.12" 128x128 pixels)](https://shop.pimoroni.com/products/1-12-oled-breakout?variant=12628508704851) and an ESP32:

 ![IMG_20220529_164802](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/0/02f775fc9223975fdd8a90ad012b29f30b3109fc.jpeg) ![IMG_20220529_152024](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/4/4f4a003db0e00717629e0030a70e041d71c1642a.jpeg) ![IMG_20220529_162751](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/9/956262769ac5581a278218403d282d59208014bb.jpeg)

N.B. For anyone considering using a 128x128 pixel OLED, please heed this warning from Adafruit:

> This display, being 128x128 pixels, requires 128 \* 128 = 2KB of SRAM just to buffer the display. So **you can’t use it with a small chip such as the Arduino UNO** (ATmega328 or 32u4). Pick a microcontroller or microcomputer with 16KB+ RAM - a SAMD21, SAMD51, ESP, nRF52, Teensy, etc will do an excellent job.

I don’t have an SH1106G OLED, so I haven’t been able to test the library for this device beyond checking that the example patches compile.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [November 25, 2022, 5:23pm UTC](https://forum.xod.io/t/libraries-for-the-sh1107-and-sh1106g-oled-drivers/6091/2 "2022-11-25T17:23:54Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
