#include <MD_Parola.h>
#include <MD_MAX72xx.h>
#include <SPI.h>
// Define the hardware type specifically for FC-16 modules
#define HARDWARE_TYPE MD_MAX72XX::PAROLA_HW
#define MAX_DEVICES 8 // One 8x32 matrix contains four 8x8 modules
// Pin definitions
#define CLK_PIN 13 // Hardware SPI Clock
#define DATA_PIN 11 // Hardware SPI MOSI
#define CS_PIN 10 // Chip Select (Can be any digital pin)
// Initialize the display object
MD_Parola myDisplay = MD_Parola(HARDWARE_TYPE, CS_PIN, MAX_DEVICES);
// Store information string to cycle through
const char storeMessage[] = "Welcome to Dollar It! - 297 Bank Street - Open Mon-Sat: 9AM-9PM, Sun: 10AM-6PM - Great prices on everyday household items!";
void setup() {
myDisplay.begin();
myDisplay.setIntensity(5); // Set brightness (0 to 15)
myDisplay.displayClear();
// Configure scrolling text: Speed (lower = faster), Direction, Effect
myDisplay.displayText(storeMessage, PA_CENTER, 30, 0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
}
void loop() {
// Keep animating the text across the matrix
if (myDisplay.displayAnimate()) {
myDisplay.displayReset(); // Restart the loop when text finishes scrolling
}
}