8*8 Led Matrix problem

So I got 8*8 led matrix, I tried this code here:
http://www.arduino.cc/playground/Main/DirectDriveLEDMatrix

But my pins don’t match wit that schematic.

My pins:

R1- -R3
C4- -R6
C7- -C5
R4- -R8
C1- -C3
R2- -C2
C8- -R5
C7- -R7

So i hooked up it like this

R1-pin9 pin8-R3
C4-pin6 pin7-R6
C7-pin4 pin10-C5
R4-pin12 pin5-R8
C1-pin16 pin11-C3
R2-pin14 pin15-C2
C8-pin3 pin1-R5
C7-pin13 pin2-R7

Uploaded code and only one led blinked :frowning:

So I looked at code:

Pin line:

int cols[8] = {pins[13], pins[3], pins[4], pins[10], pins[06], pins[11], pins[15], pins[16]};

Why is there a pins[06]? Correct is pins[6]? Does it make difference?

And this confused me, code has this line:

int pins[17]= {-1, 5, 4, 3, 2, 14, 15, 16, 17, 13, 12, 11, 10, 9, 8, 7, 6};

Pins 2-17.

But in int col and row there is pins 1-16?

int cols[8] = {pins[13], pins[3], pins[4], pins[10], pins[6], pins[11], pins[15], pins[16]};

int rows[8] = {pins[9], pins[14], pins[8], pins[12], pins[1], pins[7], pins[2], pins[5]};

Over 6 hours of messing with it and still not working :frowning:
What I’m doing wrong?
Is the code there100% correct? Problem is my wiring?

Why is there a pins[06]? Correct is pins[6]? Does it make difference?

No, leading zeros don't matter.

Pins 2-17. But in int col and row there is pins 1-16?

The pins array starts from zero so zero to 16 is 17 elements.

I would look to your wiring changes. Start off simply and wire up just one row and one column first and get that working first.