Closed Soumojit28 closed 4 years ago
It takes many many calls to displayAnimate() for the animation to complete. Please read the documentation and look at the structure of the examples to see what is needed. At a minimum you code needs to change to
void setup(void) { P.begin(); P.displayScroll("Hello", PA_CENTER, PA_SCROLL_LEFT, 100); }
void loop(void) { P.displayAnimate(); }
I tried to understand some example but having some problems, why p.displayScroll in void setup cant I put that in the loop part, and according to your code lets assume I want to print another text after then what should I do?
displayAnimate() will return true when the animation is completed. You will see that all the examples have a section similar to this in the main loop
void loop(void) { if (P.displayAnimate()) { // load the new string P.displayReset() } }
If you really don't care about doing something else while the string animates then you can also do something like this, although it is not recommended as best practice
// do something to load a new string while (!P.displayAnimate()) {} // busy wait loop // load another string while (!P.displayAnimate()) {} // busy wait loop // etc
IMPORTANT
Before submitting this issue [ ] Have you tried using the latest version of the library? [ ] Have you checked this has not already been submitted and/or resolved? [ ] If you are requesting help a better choice may be the Arduino forum
Subject of the issue
Cant display scrolling text, I need the minimal code to display a text one after one. I made a code but its not working, can you pls help
Your Environment
Library Version: 3.2.0 Arduino IDE version: 1.8.10 Hardware model/type: Arduino Nano and FS16 OS and Version: Windows 10
Steps to Reproduce
I just connected all things properly, I am using a 4 matrix module FS16 with a arduino nano, The example codes are working fine
Expected Behaviour
It should scroll the provided text I thing
Actual Behaviour
Nothing Displays in the matrix
Code Demonstrating the Issue