# Scroll OLED SSD1306

**URL:** <https://discourse.nodered.org/t/scroll-oled-ssd1306/83433>\
**Category:** Developing Nodes\
**Created:** [5 December 2023 12:13 UTC](https://discourse.nodered.org/t/scroll-oled-ssd1306/83433 "2023-12-05T12:13:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ic81](https://avatars.discourse-cdn.com/v4/letter/i/e274bd/32.png) [@ic81](https://discourse.nodered.org/u/ic81)\
**Post date:** [5 December 2023 12:13 UTC](https://discourse.nodered.org/t/scroll-oled-ssd1306/83433/1 "2023-12-05T12:13:00Z")

</div>

Hi, I'm new on Node-Red.

I've a Raspberry 3B with an Oled display SSD1306.  
I send a text "Hello World".  
After that i activate the scroll.  
The scroll truncate the text and don't work in a continuous mode.  
How to solve this issue? Any idea?

Thanks in advance.

{  
"direction": "left",  
"start": 0,  
"stop": 127  
}

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [5 December 2023 13:46 UTC](https://discourse.nodered.org/t/scroll-oled-ssd1306/83433/2 "2023-12-05T13:46:15Z")

</div>

Hello @ic81, welcome to Node-red!

Can you get the display to scroll continuously with a Python program independent of Node-red?

---

<div class="post-metadata">

**Author:** ![ic81](https://avatars.discourse-cdn.com/v4/letter/i/e274bd/32.png) [@ic81](https://discourse.nodered.org/u/ic81)\
**Post date:** [5 December 2023 13:53 UTC](https://discourse.nodered.org/t/scroll-oled-ssd1306/83433/3 "2023-12-05T13:53:54Z")

</div>

yes with python is working fine....i'm trying to convert into node-red, but i'm not able to solve this issue...

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [5 December 2023 14:06 UTC](https://discourse.nodered.org/t/scroll-oled-ssd1306/83433/4 "2023-12-05T14:06:53Z")

</div>

I guess that the python script must be running more or less continuously, at least while the display is working?

If so, one approach would be to amend the python code so it gets it's instructions over [MQTT](https://www.hivemq.com/blog/mqtt-essentials-part-1-introducing-mqtt/). Node-red can send a message ("publish" it) and the python script "subscribes".  
You need an MQTT broker, but you can easily set one up yourself - [Mosquitto](https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/) for instance can very comfortably run on even a Raspberry Pi Zero W - or use a cloud based one such as hivemq

Another possibility is calling the script from Node-red using the [daemon node](https://flows.nodered.org/node/node-red-node-daemon).

Node-red is excellent for stitching together smaller independent programs, it's not essential to do everything completely within Node-red.

It might seem OTT to use a message passing application but in fact there are advantages, even if the publisher and subscriber are on the same computer.

---

<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:** [3 February 2024 14:07 UTC](https://discourse.nodered.org/t/scroll-oled-ssd1306/83433/5 "2024-02-03T14:07:16Z")

</div>

Closed on 3 February 2024 14:07 UTC

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