/*
  MD_Parola Basic
  AnonEngineering 1/22/25
*/

// Header file includes
#include <MD_Parola.h>
#include <MD_MAX72xx.h>
#include <SPI.h>
#include <Wire.h>

#define HARDWARE_TYPE MD_MAX72XX::PAROLA_HW
#define MAX_DEVICES 2
#define SPEED_TIME 75 // Speed of the transition
#define PAUSE_TIME  0
#define MAX_MESG   20

const int BTN_PIN = 2;
//const int DATA_PIN = ;
//const int CLK_PIN = ;
const int CS_PIN = 10;

// Hardware SPI connection
MD_Parola P = MD_Parola(HARDWARE_TYPE, CS_PIN, MAX_DEVICES);

void setup() {
  Serial.begin(115200);
  P.begin(2);
  P.setInvert(false);

  P.setZone(0, 1, 1);
  P.setZone(1, 0, 0);

  P.displayZoneText(1, "1", PA_CENTER, SPEED_TIME, PAUSE_TIME, PA_PRINT, PA_NO_EFFECT);
  P.displayZoneText(0, "0", PA_CENTER, SPEED_TIME, PAUSE_TIME, PA_PRINT, PA_NO_EFFECT);

}

void loop() {
  // put your main code here, to run repeatedly:
  P.displayAnimate();


}