Text Scrolling
Create animated scrolling text using the Parola library. This can, of course, be achieved with frame animation as well, but by using libraries, we don't have to re-invent the wheel. The Parola library builds upon the MD_MAX72xx library end expands it by adding several features, such as alignment, scrolling, animations and much more.
Useful links and resources
Challenges
Challenge 1
Make it so that the text changes after it finishes the animation.
Challenge 2
Change the direction and speed of scrolling with each new message.
Example
#include <MD_Parola.h>
#include <MD_MAX72xx.h>
#define HARDWARE_TYPE MD_MAX72XX::FC16_HW
#define CS_PIN 10
#define SEGMENTS 1
MD_Parola display = MD_Parola(HARDWARE_TYPE, CS_PIN, SEGMENTS);
void setup() {
display.begin();
display.displayClear();
ledMatrix.displayScroll("Capyboard", PA_CENTER, PA_SCROLL_LEFT, 100);
}
void loop() {
if (ledMatrix.displayAnimate()) {
ledMatrix.displayReset();
}
}