# Need help with Oled display

**URL:** <https://forum.xod.io/t/need-help-with-oled-display/4485>\
**Category:** XOD Programming Questions\
**Created:** [October 6, 2020, 12:01pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485 "2020-10-06T12:01:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dancingrightnow](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@dancingrightnow](https://forum.xod.io/u/dancingrightnow)\
**Post date:** [October 6, 2020, 12:01pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/1 "2020-10-06T12:01:14Z")

</div>

I’m new to Xod and I’m not sure if i’m doing something wrong. So this is what is happening. I used the Xod Text node to first display ‘hello’, then I tried linking a number type and the screen would just remain blank. If I turned Xod off and then on again then it would display the number type but then it wouldn’t display string data types. It only works with the data type it accepted the first time. If I restart Xod it accepts both datatypes the first time but then only works with the datatype it accepted the first time. I also tried deleting the node and re entering it but that doesn’t seem to help.

---

<div class="post-metadata">

**Author:** ![gabbapeople](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/gabbapeople/32/1517_2.png) [@gabbapeople](https://forum.xod.io/u/gabbapeople)\
**Post date:** [October 6, 2020, 12:43pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/2 "2020-10-06T12:43:39Z")

</div>

Hi, @dancingrightnow!  
What display and XOD library do you use?

---

<div class="post-metadata">

**Author:** ![dancingrightnow](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@dancingrightnow](https://forum.xod.io/u/dancingrightnow)\
**Post date:** [October 6, 2020, 1:57pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/3 "2020-10-06T13:57:23Z")

</div>

I’m using the Xod graphics library. And i’m using this display [https://www.probots.co.in/oled-display-blue-0-96-128-x-64-spi-i2c-for-arduino-raspberry.html](https://www.probots.co.in/oled-display-blue-0-96-128-x-64-spi-i2c-for-arduino-raspberry.html)

---

<div class="post-metadata">

**Author:** ![gabbapeople](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/gabbapeople/32/1517_2.png) [@gabbapeople](https://forum.xod.io/u/gabbapeople)\
**Post date:** [October 6, 2020, 2:10pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/4 "2020-10-06T14:10:38Z")

</div>

Can you pls attach the xodball file with the patch.

---

<div class="post-metadata">

**Author:** ![dancingrightnow](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@dancingrightnow](https://forum.xod.io/u/dancingrightnow)\
**Post date:** [October 6, 2020, 2:36pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/5 "2020-10-06T14:36:22Z")

</div>

I’m sorry I am not able to attach the program file. Its not letting me upload it.

 ![Screenshot (53)](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/6/604d75360f52f44182b4018050040ac3f0cdef21.png)  
I hope this helps

---

<div class="post-metadata">

**Author:** ![dancingrightnow](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@dancingrightnow](https://forum.xod.io/u/dancingrightnow)\
**Post date:** [October 6, 2020, 2:37pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/6 "2020-10-06T14:37:15Z")

</div>

The program is supposed to looks at how full the tank is and outputs a percentage fill level on the screen.

---

<div class="post-metadata">

**Author:** ![dancingrightnow](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@dancingrightnow](https://forum.xod.io/u/dancingrightnow)\
**Post date:** [October 6, 2020, 2:38pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/7 "2020-10-06T14:38:20Z")

</div>

Please let me know if you nee any other details. And thank you for taking your time out to try and help me

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [October 6, 2020, 2:46pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/8 "2020-10-06T14:46:15Z")

</div>

You realize changing the program while in debug mode doesn’t change what is running on Arduino, right? You have to end the debug and re-compile/upload to run any code changes.

It is not very clear what you mean by “turning off XOD”. XOD is a program running on your computer. You can turn off or reset your Arduino board. In my case, debug never works after uploading a new program. I have to reset the Arduino board after upload completes to get debug output showing in XOD.

---

<div class="post-metadata">

**Author:** ![gabbapeople](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/gabbapeople/32/1517_2.png) [@gabbapeople](https://forum.xod.io/u/gabbapeople)\
**Post date:** [October 6, 2020, 3:01pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/9 "2020-10-06T15:01:24Z")

</div>

I’m pretty sure it’s the low RAM memory =( It’s a known issue. Now SSD1306 display require lots of RAM working with XOD graphics.

If you try to upload the patch to Mega or esp with more RAM everything should work.

---

<div class="post-metadata">

**Author:** ![dancingrightnow](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@dancingrightnow](https://forum.xod.io/u/dancingrightnow)\
**Post date:** [October 6, 2020, 3:57pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/10 "2020-10-06T15:57:56Z")

</div>

Thank you so much that helps a lot. Is there any way I can run it on the uno maybe a different library?

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [October 6, 2020, 4:18pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/11 "2020-10-06T16:18:31Z")

</div>

Upload without debugging activated and then do a reset on the board.

---

<div class="post-metadata">

**Author:** ![dancingrightnow](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@dancingrightnow](https://forum.xod.io/u/dancingrightnow)\
**Post date:** [October 6, 2020, 5:43pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/12 "2020-10-06T17:43:05Z")

</div>

Just tried it. It didn’t seem to work. But thanks a lot for taking the time to reply.

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [October 6, 2020, 6:20pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/13 "2020-10-06T18:20:58Z")

</div>

ok, add the following to your patch, that will make it not take another read until it completes writing to the display.  
With that it should free up ram and work

![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/d/d4cf41525a811b4310691d9406bdea68dbc4d31f.png)

---

<div class="post-metadata">

**Author:** ![m-b](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@m-b](https://forum.xod.io/u/m-b)\
**Post date:** [October 6, 2020, 6:28pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/14 "2020-10-06T18:28:18Z")

</div>

Hi

I’m using the same display with the library of wayland and it works quite well. Take care of sck and sda and wiring of those, in the past I get display with wrong label on it!

> **[wayland/ssd1306-oled-i2c — XOD](https://xod.io/libs/wayland/ssd1306-oled-i2c/)**

 ![grafik](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/e/e66c6419ac86eb9f579bb93e93f3827585f38734.png)

---

<div class="post-metadata">

**Author:** ![dancingrightnow](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@dancingrightnow](https://forum.xod.io/u/dancingrightnow)\
**Post date:** [October 6, 2020, 7:14pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/15 "2020-10-06T19:14:12Z")

</div>

Didn’t work, But thanks for taking the time.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/3/3f1e983fa7b891d1c3bdbcb23bc7c43994418d1e.png)  
This is what I did

---

<div class="post-metadata">

**Author:** ![dancingrightnow](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@dancingrightnow](https://forum.xod.io/u/dancingrightnow)\
**Post date:** [October 6, 2020, 7:17pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/16 "2020-10-06T19:17:38Z")

</div>

I did double check the scl and sda pins they are wired correctly. I did some more experimenting and it seems like it only doesn’t work if I try and connect a different node to the s pin. If I type anything in directly into the S pin it seems to work.

---

<div class="post-metadata">

**Author:** ![dancingrightnow](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@dancingrightnow](https://forum.xod.io/u/dancingrightnow)\
**Post date:** [October 6, 2020, 7:19pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/17 "2020-10-06T19:19:32Z")

</div>

Also I’m really new to xod so I found the wayland library a little hard to understand, so I went for the xod graphics library, but I will try the wayland library. And thank you for taking the time to respond

---

<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:** [October 6, 2020, 7:27pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/18 "2020-10-06T19:27:29Z")

</div>

Try this:

 ![Screenshot 2020-10-06 at 20.24.20](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/6/6441bf6b439f06a7464f9748b132820d79f17d59.png)  
[hc-sr04-range-meter-oled.xodball](https://forum.xod.io/uploads/short-url/tP8VNFxEh4o3VwLV2iMV87Op6OF.xodball) (6.7 KB)

---

<div class="post-metadata">

**Author:** ![dancingrightnow](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@dancingrightnow](https://forum.xod.io/u/dancingrightnow)\
**Post date:** [October 6, 2020, 7:44pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/19 "2020-10-06T19:44:25Z")

</div>

Thank you so so much that worked!!!

---

<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:** [October 8, 2020, 7:50pm UTC](https://forum.xod.io/t/need-help-with-oled-display/4485/21 "2020-10-08T19:50:21Z")

</div>

Closed on October 8, 2020, 7:50pm UTC

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