#include <MD_Parola.h>
#include <MD_MAX72xx.h>
#include <SPI.h>
// Define hardware type and size
#define HARDWARE_TYPE MD_MAX72XX::PAROLA_HW
#define MAX_DEVICES 4
// Define the connections pins
#define DATA_IN_PIN 13
#define CLK_PIN 14
#define LOAD_PIN 15
// Create Parola object
MD_Parola myDisplay = MD_Parola(HARDWARE_TYPE, DATA_IN_PIN, CLK_PIN, LOAD_PIN, MAX_DEVICES);
void setup() {
// Initialize the object
myDisplay.begin();
// Set the intensity (brightness) of the display
myDisplay.setIntensity(0); // range is 0-15
// Set the speed of the display
myDisplay.setSpeed(100);
// No need to explicitly set effects here, as they are specified in displayText
// Set the text to display with scrolling effect from left to right
myDisplay.displayText("welcome Jitendra Kumar", PA_LEFT, 100, 1000, PA_SCROLL_LEFT, PA_SCROLL_RIGHT);
}
void loop() {
// Continuously run the animation
if (myDisplay.displayAnimate()) {
myDisplay.displayReset();
}
}