#include <MD_Parola.h>
#include <MD_MAX72xx.h>
#include <SPI.h>
// Uncomment according to your hardware type
//#define HARDWARE_TYPE MD_MAX72XX::FC16_HW
//#define HARDWARE_TYPE MD_MAX72XX::GENERIC_HW
// Defining size, and output pins
#define HARDWARE_TYPE MD_MAX72XX::PAROLA_HW
#define MAX_DEVICES 16 // Define the number of displays connected
#define CLK_PIN 18 // CLK or SCK
#define DATA_PIN 23 // DATA or MOSI
#define CS_PIN 15 // CS or SS
#define SPEED_TIME 70 // Speed of the transition
#define PAUSE_TIME 0
#define MAX_MESG 100
// Create a new instance of the MD_Parola class with hardware SPI connection
MD_Parola myDisplay = MD_Parola(HARDWARE_TYPE, CS_PIN, MAX_DEVICES);
void setup() {
// Intialize the object
myDisplay.begin();
// Set the intensity (brightness) of the display (0-15)
myDisplay.setIntensity(15);
// Clear the display
myDisplay.displayClear();
myDisplay.displayScroll ("Happy Engineer's Day to all Engineers", PA_CENTER, PA_SCROLL_LEFT, 30);
}
void loop() {
if (myDisplay.displayAnimate()) {
myDisplay.displayReset();
}
}