MajicDesigns / MD_Parola

Library for modular scrolling LED matrix text displays
GNU Lesser General Public License v2.1
433 stars 135 forks source link

Static text printing to a zone using displayZoneText? #38

Closed mrcodetastic closed 5 years ago

mrcodetastic commented 5 years ago

Hello,

I am using Parola on a simple configuration: 8 devices and two Parola zones.

What I want to do is have static text in one zone without any animation. The other zone will have scrolling text.

I can't seem to figure out how to do this. With a single zone (no zone) setup I could simply to Parola.print("XXX"), but this doesn't work reliably if you have more than on zone.

Using "displayZoneText()" forces me to provide an animation and a duration.

Is there any way to simply plonk text into the middle, left or right of a zone without a duration and exist effect. Therefore having text show indefinitely?

Thank you again for such a great library.

MajicDesigns commented 5 years ago

Use displayZoneText() with PA_PRINT animation. If you don't want an exit effect (ie, just the same as .print()) then use PA_NO_EFFECT for the exit effect and a delay of 0 between entry and exit.

mrcodetastic commented 5 years ago

Thank you kindly Marco.