# Oled 1.3" sh1106

**URL:** <https://forum.xod.io/t/oled-1-3-sh1106/6078>\
**Category:** XOD Programming Questions\
**Created:** [May 18, 2022, 10:47pm UTC](https://forum.xod.io/t/oled-1-3-sh1106/6078 "2022-05-18T22:47:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mariusz-walica](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@mariusz-walica](https://forum.xod.io/u/mariusz-walica)\
**Post date:** [May 18, 2022, 10:47pm UTC](https://forum.xod.io/t/oled-1-3-sh1106/6078/1 "2022-05-18T22:47:33Z")

</div>

Hello everyone.  
I need a 1.3 "sh1106 i2c display patch Someone could make a patch like wayland / ssd1306-oled-i2c / ssd1306-oled-i2c-device that would support sh1106 display. I tried to create myself, but I can’t. It is difficult for me.  
Thank you.

---

<div class="post-metadata">

**Author:** ![san43](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/san43/32/2904_2.png) [@san43](https://forum.xod.io/u/san43)\
**Post date:** [May 24, 2022, 2:46pm UTC](https://forum.xod.io/t/oled-1-3-sh1106/6078/2 "2022-05-24T14:46:50Z")

</div>

@wayland wrote a great guide for converting class-based Arduino libraries to XOD - available here: [https://www.biomaker.org/s/converting-arduino-libraries-to-xod.pdf](https://www.biomaker.org/s/converting-arduino-libraries-to-xod.pdf)

You could try converting this library: [OLED SSD1306 - SH1106 - Arduino Reference](https://www.arduino.cc/reference/en/libraries/oled-ssd1306-sh1106/) in a similar way? I think you would need to know at least a little C++ to understand the Arduino library first though.

---

<div class="post-metadata">

**Author:** ![mariusz-walica](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@mariusz-walica](https://forum.xod.io/u/mariusz-walica)\
**Post date:** [May 25, 2022, 4:19am UTC](https://forum.xod.io/t/oled-1-3-sh1106/6078/3 "2022-05-25T04:19:36Z")

</div>

Hello.  
I will read the guide and try to do it.  
Thank you very much for your answer.  
Greetings.

---

<div class="post-metadata">

**Author:** ![mariusz-walica](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@mariusz-walica](https://forum.xod.io/u/mariusz-walica)\
**Post date:** [May 29, 2022, 6:36am UTC](https://forum.xod.io/t/oled-1-3-sh1106/6078/4 "2022-05-29T06:36:14Z")

</div>

I tried to convert the libraries but I failed and I give up. I will buy a display based on tft st7735. I have one more question, the bradzilla84 / arduino-tft-lib @ 0.1.0 library will work on all displays from the st7735 family, regardless of the type, version or size of the display?

---

<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:28pm UTC](https://forum.xod.io/t/oled-1-3-sh1106/6078/5 "2022-05-29T17:28:14Z")

</div>

## ST7735

The easiest way to get started with the ST7735 on XOD would be to follow this guide:

> **[ST7735 display](https://xod.io/docs/guide/st7735-display/)**
>
> How to work with ST7735 displays in the XOD programming language.

* * *

## SH1106

The following **untested** library may work with your device:  
[sh1106g-oled-i2c](https://xod.io/libs/wayland/sh1106g-oled-i2c/)  
As always, use at your own risk. I haven’t had time to look into the difference(s) between the SH1106 and SH1106G, if any.

---

<div class="post-metadata">

**Author:** ![mariusz-walica](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@mariusz-walica](https://forum.xod.io/u/mariusz-walica)\
**Post date:** [May 29, 2022, 8:31pm UTC](https://forum.xod.io/t/oled-1-3-sh1106/6078/6 "2022-05-29T20:31:20Z")

</div>

The display works !!!.  
But in the beginning, after uploading the example, there was a black screen.  
I found a mistake in the sh1106g-oled-i2c-device code. This uses a library (Adafruit\_SH1107) and therefore did not work. I changed them all to (Adafruit\_SH1106G) and it works.  
Sorry for my english 🙂  
Thank you very much for your time.  
You are great 🙂  
Greetings  
Mario

---

<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, 9:29pm UTC](https://forum.xod.io/t/oled-1-3-sh1106/6078/7 "2022-05-29T21:29:19Z")

</div>

You’re welcome. Thanks for the feedback!

---

<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:** [June 28, 2022, 9:29pm UTC](https://forum.xod.io/t/oled-1-3-sh1106/6078/8 "2022-06-28T21:29:43Z")

</div>

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