#include <MD_Parola.h> // library untuk mengendalikan modul LED matrix

 // set pin clock (CLK), pin data(DIN), pin select(CS), max dot metrix
const byte clock_pin = 52;
const byte data_pin = 51;
const byte chip_select_pin = 53; 
const byte max_devices = 4;

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

void setup() {
  Serial.begin(9600);
  Serial.print("KELOMPOK 5 ");
  matrix.begin();
  matrix.displayClear();
  // teks dengan animasi dari kanan ke kiri
  matrix.displayText("KELOMPOK 5 ", PA_CENTER, 50, 0, PA_SCROLL_LEFT);
}

void loop() {
  if (matrix.displayAnimate()) {
    matrix.displayReset();
  }
}