I typed the code and did not work at first. I thought the problem was the circuit that use shift register, did the countless tests and realize that I was correct. One of the test was to count binary column and row and it worked correctly.

When I added 'delay (1)' on line 44, the project works almost perfectly (some blinking leds that was not to be fishing).

I'm new to the Arduino world ... and not know where to go right now. In another project related to LED Dot Matrix had already partially solved this problem adding a 'delay (1)'.