Help with max7219

Hi everyone!

Please somebody help me with my project, I'll like display messages in two matrixes but in I don't know if my code and my simulation in proteus work fine, when the dout of the first send the instruction the second max7219 do not work.

This is my code and the picture of my work in proteus:

#include "LedControl.h"
LedControl lc1=LedControl(12,11,10,1);

//LedControl(int dataPin, int clkPin, int csPin, int numDevices);
LedControl lc=LedControl(12,11,10,2);

unsigned long delaytime=100;

void setup() {
lc.shutdown(0,false);
//intensidad de los led a la mitad
lc.setIntensity(0,8);
//se limpia el display
lc.clearDisplay(0);
}

void Mensaje(){

byte c[8]={B11111111,B10000001,B10111101,B10100101,B10100101,B10111101,B10000001,B11111111};
byte i[8]={B00000000,B01111110,B01000010,B01011010,B01011010,B01000010,B01111110,B00000000};

lc.setColumn(0,0,c[0]);
lc.setColumn(0,1,c[1]);
lc.setColumn(0,2,c[2]);
lc.setColumn(0,3,c[3]);
lc.setColumn(0,4,c[4]);
lc.setColumn(0,5,c[5]);
lc.setColumn(0,6,c[6]);
lc.setColumn(0,7,c[7]);

lc.setColumn(1,0,i[0]);
lc.setColumn(1,1,i[1]);
lc.setColumn(1,2,i[2]);
lc.setColumn(1,3,i[3]);
lc.setColumn(1,4,i[4]);
lc.setColumn(1,5,i[5]);
lc.setColumn(1,6,i[6]);
lc.setColumn(1,7,i[7]);

delay(delaytime);
}

void loop() {
Mensaje();
}

Matriz(1).pdf (34.4 KB)

Please use code tags.

Read this before posting a programming question

Read this:

In particular reply #3 which is about daisy-chaining them.