#include <MD_MAX72xx.h>
#include <SPI.h>
#include <MD_Parola.h>
const byte clock_pin=13;
const byte data_pin=11;
const byte chip_select_pin=10;
const byte max_devices=4;
MD_Parola matrix=MD_Parola(MD_MAX72XX::PAROLA_HW,chip_select_pin,max_devices);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
matrix.begin();
matrix.displayClear();
//matrix.displayText("text", alignment, time in. in flame, pause animation b/w in and out, effect in of the text, effect out);
//matrix.displayText("Helllo!", PA_CENTER, 50, 2000, PA_SCROLL_LEFT, PA_WIPE_CURSOR);
}
void loop() {
// put your main code here, to run repeatedly:
if(matrix.displayAnimate()){
matrix.displayText("Helllo!", PA_CENTER, 50, 2000, PA_RANDOM, PA_RANDOM);
}
}