#include "MD_MAXPanel.h"

const MD_MAX72XX::moduleType_t HARDWARE_TYPE = MD_MAX72XX::PAROLA_HW;
const uint8_t X_DEVICES = 4;
const uint8_t Y_DEVICES = 5;

const uint8_t CLK_PIN = 12;  // or SCK
const uint8_t DATA_PIN = 11; // or MOSI
const uint8_t CS_PIN = 10;   // or SS

// SPI hardware interface
   MD_MAXPanel mp = MD_MAXPanel(HARDWARE_TYPE,                    CS_PIN, X_DEVICES, Y_DEVICES);
// MD_MAXPanel mx = MD_MAXPanel(HARDWARE_TYPE, DATA_PIN, CLK_PIN, CS_PIN, X_DEVICES, Y_DEVICES);

void setup() {
    mp.begin();
}

void loop() {
    mp.clear();
    mp.setPoint(20, 30, true); //No matrix index is needed for the 20-th position on the 3-d module
}