#include <MD_MAX72xx.h>
#include <SPI.h>
#include <MD_Parola.h>

const byte clk_pin = 13;
const byte data_pin = 11;
const byte chip_select_pin = 10;
const byte max_devices = 7;

MD_Parola matrix = MD_Parola(MD_MAX72XX::PAROLA_HW, chip_select_pin, max_devices);

void setup() {
    Serial.begin(9600);
    matrix.begin();
    matrix.displayClear();  
}

void loop() {
  if(matrix.displayAnimate()) {
    matrix.displayText("Niloy", PA_RIGHT, 30, 0, PA_SCROLL_RIGHT);
  }
}