Simple editor for controlling one or more 8x8 matrices using the MD_MAX72XX library.

Inspired by LED Matrix Editor.

The number of matrices down below are the number of matrices you are going to use. Insert more if needed. The name of the matrix will be mx.

Sample code (for 6 matrices):

See my other projects: sabinM1.
ms.
Use Drag-and-Drop to reorder matrices
// Including the required Arduino libraries
#include "MD_MAX72xx.h"

// Initialization
#define HARDWARE_TYPE MD_MAX72XX::GENERIC_HW
#define MAX_DEVICES 15 //this example is using only 6
#define CS_PIN 4
#define DATA_PIN 5
#define CLK_PIN 18
MD_MAX72XX mx = MD_MAX72XX(HARDWARE_TYPE, DATA_PIN, CLK_PIN, CS_PIN, MAX_DEVICES);

//Call with "set_matrix()":
void set_matrix(){
 int a[6][8] = {
  {1110, 10010, 100010, 100010, 10010, 100010, 100010, 11110},
  {10011001, 10011001, 10000001, 1000010, 1000010, 1100110, 100100, 111100},
  {11111111, 10000001, 10010101, 10100001, 10100001, 10010101, 10000001, 11111111},
  {11111111, 10000001, 10010101, 10100001, 10100001, 10010101, 10000001, 11111111},
  {11111111, 10000001, 10010101, 10100001, 10100001, 10010101, 10000001, 11111111},
  {11111111, 10000001, 10010101, 10100001, 10100001, 10010101, 10000001, 11111111}
 };

 for (int i=0; i<6; i++){
   for (int j=0; j<8; j++){
    for (int k=8+8*i-1; k>8*i-1; k--){
     mx.setPoint(j, k, a[i][j]%10);
     a[i][j]/=10;
   }
  }
 }
}

void setup() {
  // Intialize the object
  mx.begin();
  // Set the intensity (brightness) of the display (0-15)
  mx.control(MD_MAX72XX::INTENSITY, 7);
  // Clear the display
  mx.clear();
  // Set the matrix to the patterns
  set_matrix();
}
void loop() {
}