#include <MD_Parola.h>
#include <MD_MAX72xx.h>
#define HARDWARE_TYPE MD_MAX72XX::PAROLA_HW
#define MAX_DEVICES 4 // Jumlah blok LED matrix
#define CS_PIN 21
#define CLK_PIN 18
#define DATA_PIN 23
// Membuat instance MD_Parola
MD_Parola ledMatrix = MD_Parola(HARDWARE_TYPE, CS_PIN, MAX_DEVICES);
void setup() {
ledMatrix.begin(); // Inisialisasi LED Matrix
ledMatrix.setIntensity(0); // Atur kecerahan LED matrix (0 hingga 15)
ledMatrix.displayClear(); // Hapus tampilan LED matrix
// Atur teks berjalan
ledMatrix.displayText("Justin Christopher Tetelepta - 5024221060", PA_LEFT, 50, 0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
}
void loop() {
// Mulai running text
if (ledMatrix.displayAnimate()) {
ledMatrix.displayReset();
}
}