arduino mega + max7219 + 8x8 matrix

Hello,

I want to know how to connect arduino mega 2560 to max7219 and 8x8 matrix (RED (16 legs)) can anyone show me how to do this and write sample code?

I try to do like this:

and write code:

#include "LedControl.h" 
LedControl lc=LedControl(11,13,10,1); 

void setup()
{
lc.shutdown(0,false);
lc.setIntensity(0,15);
lc.clearDisplay(0);
}

void L(){
lc.setLed(0,7,7,true);
lc.setLed(0,7,6,true);
lc.setLed(0,7,5,true);
lc.setLed(0,7,4,true);
lc.setLed(0,7,3,true);
lc.setLed(0,7,2,true);
lc.setLed(0,7,1,true);
lc.setLed(0,7,0,true);
lc.setLed(0,6,7,true);
lc.setLed(0,6,6,true);
lc.setLed(0,6,5,true);
lc.setLed(0,6,4,true);
lc.setLed(0,6,3,true);
lc.setLed(0,6,2,true);
lc.setLed(0,6,1,true);
lc.setLed(0,6,0,true);
lc.setLed(0,5,1,true);
lc.setLed(0,4,1,true);
lc.setLed(0,3,1,true);
lc.setLed(0,5,0,true);
lc.setLed(0,4,0,true);
lc.setLed(0,3,0,true);
}



void loop(){

 lc.clearDisplay(0);
 L();
 delay(1000);
}

previously I was connected my own 8x8 matrix the same way only with arduino mega 2560 pins 12, 11 and 10 and dont use 10K resistor in my 8x8 matrix all cathode was connecteds in 8 lines and the same for anodes and was no problems now 8x8 matrix is D23088A/B then I upload code all matrix lights turn on and you can see some lights bright little bit less

Can you post a link to the data sheet for the matrix? I can't find it with google.

Paul