user67848: I made a dot matrix that contain 10 row and 12 column , total 120 led.
I want to turn on the leds like this picture but when I open ground 1 , 2 and pin 0 , 1 , 2
6 leds light together.what kind of structure should I build?
Sheme :

I tried row by row like this:
 clear_cube();
 regWrite(cube[0][0], HIGH);
 set_array(4);
 //delay(10);

clear_cube();
regWrite(cube[1][0], HIGH);
set_array(3);
//delay(10);

clear_cube();
regWrite(cube[0][0], HIGH);
set_array(2);
//delay(10);                                                                                                                                 When I decrease the delay 5 leds blinking.

100  50  10  0 delay   Youtube

user4143: You can't just turn them on like that.
Instead you have to turn one row on. Then the next row. Then the next. Very fast.
So you first display:
O@OO
OOOO
OOOO

Then you display
OOOO
OO@O
OOOO

Then you display
OOOO
OOOO
O@OO

And you cycle through that very fast.  Usually using a timer to run it all.  The fact that you're using '595s will slow you down and make it harder to update fast enough to look non-flickery.

67848: <p>I made a dot matrix that contain 10 row and 12 column , total 120 led.</p>
<p>I want to turn on the leds like this picture but when I open ground 1 , 2 and pin 0 , 1 , 2</p>
<p>6 leds light together.what kind of structure should I build?</p>
<p>Sheme :
<a href="https://i.stack.imgur.com/OqqG4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OqqG4.png" alt="enter image description here" /></a></p>
<p>I tried row by row like this:</p>
<pre><code> clear_cube();
 regWrite(cube[0][0], HIGH);
 set_array(4);
 //delay(10);

clear_cube();
regWrite(cube[1][0], HIGH);
set_array(3);
//delay(10);

clear_cube();
regWrite(cube[0][0], HIGH);
set_array(2);
//delay(10);                                                                                                                                 When I decrease the delay 5 leds blinking.
</code></pre>
<p>100  50  10  0 delay   <a href="https://youtu.be/726pVOY1ut0" rel="nofollow noreferrer">Youtube</a></p>
 4143: <p>You can't just turn them on like that.</p>
<p>Instead you have to turn one row on. Then the next row. Then the next. Very fast.</p>
<p>So you first display:</p>
<pre><code>O@OO
OOOO
OOOO
</code></pre>
<p>Then you display</p>
<pre><code>OOOO
OO@O
OOOO
</code></pre>
<p>Then you display</p>
<pre><code>OOOO
OOOO
O@OO
</code></pre>
<p>And you cycle through that very fast.  Usually using a timer to run it all.  The fact that you're using '595s will slow you down and make it harder to update fast enough to look non-flickery.</p>
