# Node-red-contrib-oled issue - "type error"

**URL:** <https://discourse.nodered.org/t/node-red-contrib-oled-issue-type-error/43718>\
**Category:** General\
**Created:** [5 April 2021 18:18 UTC](https://discourse.nodered.org/t/node-red-contrib-oled-issue-type-error/43718 "2021-04-05T18:18:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_Cotton](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve_cotton/32/39750_2.png) [@Steve\_Cotton](https://discourse.nodered.org/u/Steve_Cotton)\
**Post date:** [5 April 2021 18:18 UTC](https://discourse.nodered.org/t/node-red-contrib-oled-issue-type-error/43718/1 "2021-04-05T18:18:16Z")

</div>

Hi @ all

i´ve set up a very simple function to test my oled display.

```auto
msg.payload = {
size:2,
x:1,
y:20,
text:"Hello!"
}

```

I connected the function directely to the String-Node. When i deploy, I get this message:

> "TypeError: Cannot read property 'setCursor' of undefined"

The message comes from the "string-node". All other oled-nodes (rectangle etc.) have the same issue. Does anyone have a hint for me? Or is there an alternative to the "node-red-contrib-oled" node?

Iam using node-red 1.2.9 on a Raspberry Pi3B

Thank you

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [5 April 2021 19:33 UTC](https://discourse.nodered.org/t/node-red-contrib-oled-issue-type-error/43718/2 "2021-04-05T19:33:15Z")

</div>

> [@Steve\_Cotton](#):
>
> All other oled-nodes (rectangle etc.) have the same issue

Look at the closed issues on the GitHub repo. One of them mentions this error using i2c Vs spi.

> <https://github.com/HendrikRoth/node-red-contrib-oled/issues/20>
>
> hi, i have classic display SSD1306 like this: 
> !\[image\](https://user-images.git…hubusercontent.com/20506433/83333236-2b20d980-a2a8-11ea-9f64-1b48061c07c2.png)
> i connected to RPI. all working ok in nodered!
> if i run i2cdetect -y -a 1, i receive i2c adress (3c)
> 
> but i bought another display https://www.electrodragon.com/product/1-3-oled-display-mini-shield-for-raspberry-pi/
> 1. this module not working in node-red.
> 2. this module not seen with i2cdetect -y -a 1.
> but i playing on this module using https://github.com/Edragon/RPI/tree/master/Display/1.3-OLED-SH106/Python and all work fine!
> question: how i can use this module in nodered?
> in nodered i have error with 3c adress ("TypeError: Cannot read property 'setCursor' of undefined")
> with classic display all ok.

It doesn't have any resolution but maybe it's a clue?

---

<div class="post-metadata">

**Author:** ![Steve\_Cotton](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve_cotton/32/39750_2.png) [@Steve\_Cotton](https://discourse.nodered.org/u/Steve_Cotton)\
**Post date:** [5 April 2021 19:43 UTC](https://discourse.nodered.org/t/node-red-contrib-oled-issue-type-error/43718/3 "2021-04-05T19:43:19Z")

</div>

Thank you, Steve. I already found this post before. But in my case the Oled is found by i2cdetect.

I have three similar oleds. All of them worked fine with node red a few days ago. Now, none of them works.  
It's very strange, I changed nothing 🤔!  
The picture below shows what I sometimes get on all of the displays. Just a bunch of pixels and node red lost connection.

[IMG\_20210405\_215242|375x500](https://discourse.nodered.org/uploads/short-url/5D36fkUpZoz2nai66EGpdGAa4KJ.jpeg)

---

<div class="post-metadata">

**Author:** ![dwmead86](https://avatars.discourse-cdn.com/v4/letter/d/9f8e36/32.png) [@dwmead86](https://discourse.nodered.org/u/dwmead86)\
**Post date:** [20 April 2021 03:34 UTC](https://discourse.nodered.org/t/node-red-contrib-oled-issue-type-error/43718/4 "2021-04-20T03:34:31Z")

</div>

I am having the same issue, except I dont even get anything to display... just a black screen. i2cdetect finds the display on 0x3c.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 June 2021 03:35 UTC](https://discourse.nodered.org/t/node-red-contrib-oled-issue-type-error/43718/5 "2021-06-19T03:35:20Z")

</div>

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