Disable scrolling SSD1306 Framed

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ganzales
New user
Posts: 3
Joined: 19 Nov 2023, 21:11

Disable scrolling SSD1306 Framed

#1 Post by ganzales » 19 Nov 2023, 21:36

How to disable auto scrolling frames and change them with button? “Step through frames with Display button” works, but frames also scroll by interval. If set interval 0, scrolling turned off, but sensor data is not refreshed on display.

User avatar
Ath
Normal user
Posts: 3526
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Disable scrolling SSD1306 Framed

#2 Post by Ath » 19 Nov 2023, 21:58

Welcome, your first question, great :D

Ah, I understand your issue, the Framed OLED plugin is originally designed as a paging system, continuously displaying all available data-frames.
Switching pages is indeed not possible to disable.
I'll think about how that could be implemented (adding another checkbox is easy, but the code has become quite complex over the years, with multiple people working on it :?)

As a workaround you could write a bunch of rules to refresh the data on the display, only for the current page/frame, but that will quickly become quite complicated.
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8759
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Disable scrolling SSD1306 Framed

#3 Post by TD-er » 20 Nov 2023, 00:31

You could try to set the Scroll to "instant"
Just tried it here and the next page is then not scrolling in, but just 'flipped' to the next page.

N.B. I just tested with the interval timer set, not switching pages per rules.

ganzales
New user
Posts: 3
Joined: 19 Nov 2023, 21:11

Re: Disable scrolling SSD1306 Framed

#4 Post by ganzales » 20 Nov 2023, 08:15

With setted interval frames changed automatic, without data from sensors not refreshed. Now, I'm adding few display with one address and change them from rules, but i thinking it's little bit not right and not comfortable.

TD-er
Core team member
Posts: 8759
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Disable scrolling SSD1306 Framed

#5 Post by TD-er » 20 Nov 2023, 09:08

Not sure if I understand your last message.
What do you mean by "adding few display with one address" ?
Are you trying to use several OLED displays on the same node using the same I2C address?

ganzales
New user
Posts: 3
Joined: 19 Nov 2023, 21:11

Re: Disable scrolling SSD1306 Framed

#6 Post by ganzales » 20 Nov 2023, 09:19

One physical display, but several devices (like logical) with same address, and toggle them, in one time enabled only single - it's working.

TD-er
Core team member
Posts: 8759
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Disable scrolling SSD1306 Framed

#7 Post by TD-er » 20 Nov 2023, 10:14

Ah you mean "tasks".
You can also just send a command to update the line to be displayed.
I guess that's easier than doing this taskdisable/taskenable as the plugin needs to allocate quite a large chunk of memory and that's not always guaranteed to work as the heap may get more fragmented over time.

See the possible commands for this plugin:
https://espeasy.readthedocs.io/en/lates ... -available

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests