#include <MD_Parola.h>
#include <SPI.h>
const byte clock_pin = 52;
const byte data_pin = 51;
const byte chip_select_pin = 53;
const byte max_devices = 8;
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);
Serial.print("KELOMPOK 02");
matrix.begin();
matrix.displayText("KELOMPOK 02 ", PA_CENTER, 50,50,PA_SCROLL_LEFT);
matrix.displayClear();
}
void loop() {
// put your main code here, to run repeatedly:
for (int posisi = 0; posisi <18; posisi++)
if (matrix.displayAnimate()){
matrix.displayReset();
}
}