#include <MD_Parola.h>
#include <MD_MAX72xx.h>
#include <SPI.h>
#define HARDWARE_TYPE MD_MAX72XX::PAROLA_HW
#define MAX_DEVICES 4
#define CLK_PIN 13
#define DATA_PIN 11
#define CS_PIN 10
MD_Parola myDisplay(HARDWARE_TYPE, CS_PIN, MAX_DEVICES);
void setup() {
// put your setup code here, to run once:
myDisplay.begin();
myDisplay.setIntensity(15);
myDisplay.displayClear();
myDisplay.displayText (
"Si el camino es dificil es por que la cima lo vale. Ingenieria informatica",
PA_CENTER,
100,
0,
PA_SCROLL_LEFT,
PA_SCROLL_LEFT
);
}
void loop() {
// put your main code here, to run repeatedly:
if(myDisplay.displayAnimate()){
myDisplay.displayReset();
}
}