max7219 led matrix 8x8

Hello i'm using a led matrix with a max7219 led driver.
i have search on the internet how i must connect the max7219 with the led matrix 8x8 en the arduino.
i find it en connected it. if i upload a sketch then the led matrix light up not every led but mayby 50% of the led en all on a strange combination. i don't now if something is broken or my code is good. on my self i think its some thing in the hardware because i tryt some other sketches downloaded from the internet and with every sketch its lighting up the same.

Pleas help me and sorry for my bad english

this is the sketch

#include "LedControl.h"

LedControl lc = LedControl(12,11,10,1);

unsigned long delayTime = 100;

byte si[] =
{
B00011000,
B00111100,
B01111110,
B11011011,
B11111111,
B00100100,
B01011010,
B10100101,
};

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

void spaceInvader()
{
for (int i = 0; i < 8; i++)
{
lc.setRow(0,i,si*);*

  • }*
    }
    void loop()
    {
  • spaceInvader();*
  • for (int j = 0; j < 9; j++)*
  • {*
  • lc.setIntensity(0,j);*
  • delay(delayTime);*
  • }*
  • for (int j = 8; j > -1; j--)*
  • {lc.setIntensity(0,j);*
  • delay(delayTime);*
  • }*
    }

Make sure you post your code using the # button so that it appears correctly. You can edit your previous post to inude this.

Can you post your circuit so that we can see? Also, what type of LED matrix are you using (there will be a part number printed on the matrix).