Comments (5)
Your attempt 1 is ok but it means the processor does not do anything other than print the words.
Attempt 3 is the most correct but you need to increment the index only when the animation has completed
if (P.displayAnimate())
{
if ((i%2) == 0) strcpy(curMessage, "hello");
else strcpy(curMessage, "world");
i++;
P.displayText(curMessage, Salgin, Sspeed, Spause, Seffect, Seffect);
}
You can see this technique being used in the Parola_Scrolling example.
from md_parola.
Thanks alot.
I am not sure if I understand it correctly why the changing of curMessage
and P.displayText()
has to be in the if (P.displayAnimate()){}
.
Is it because otherwise the curMessage
changes too quickly and the display cant keep up with it?
from md_parola.
displayAnimate() returns true when there is no animation running (ie, no started or just completed). So to change the message you wait until the animation is finished and then change the message and restart the animation.
curMessage is the memory where the message is stored. It is declared in the application and shared with the library to save RAM usage.
If you change the message while it is animating it will usually work - part of the 'old' message will be on the display and then part of the new message will be displayed after. The problems are when the new message is a lot shorter than the old and the current display point is beyond the end of the new message - the library will unpredictable things.
Please read the library documentation if you don't understand what a class method does. These are extensively documented. In the docs folder of the library, open the file index.html.
from md_parola.
Thanks for the help!
I am not used to C++ so much and since there are no tutorials for your library just copy and pastes of your examples, I am quite overwhelmed.
from md_parola.
FYI someone on the Arduino forum (Arduino.cc) had this as a link for a tutorial on MD_Parola
https://lastminuteengineers.com/max7219-dot-matrix-arduino-tutorial/
from md_parola.
Related Issues (20)
- FADE animation fails in Parola_Animation_Catalog HOT 1
- Guidance request on how to dynamically adjust zone numbers in display at run time HOT 2
- Display Sprite data as a simple character without scroll - not issue just a question about library working HOT 7
- Multizone vs full zone handling library question - help request HOT 1
- MD_Parola initialization fails after reboot HOT 29
- Multiple Row Displays HOT 5
- strrev missing?? HOT 7
- CP437 Font File HOT 1
- Scrolling text one time HOT 1
- Interrupt text effect in anytime HOT 3
- Use of MD_parola HOT 2
- [QUESTION] turn specific pixel on or off? HOT 2
- Remanant residual text on Double_Height on 2x19 matrix HOT 5
- How can I change HARDWARE_TYPE and MAX_DEVICES from the loop depending on some integer variables HOT 1
- Pixel errors and display reset HOT 1
- For UNO r4 minima is this lib ported ? or just works as it is HOT 1
- I want to use Hindi font. How can i use ? HOT 1
- Display Clear is not working HOT 2
- issue on P.displayAnimate() parola HOT 3
- avr/io.h HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from md_parola.