Problems BC337 npn and 8*8 dot matrix LEDs

Hi Please!!
I do my project like this web.
http://garagelab.com/profiles/blogs/arduino-scrolling-text-marquee-to-give-a-happy-christmas

Then I search for datasheet of 8*8 LEDs dot matrix of website above, and found this https://drive.google.com/file/d/0BzD8fh1u7V6kb3pUVElFYUZ4YUk/view?usp=sharing

But the 8*8 LEDs dot matrix that I just buy was this 2388ASRG https://drive.google.com/file/d/0BzD8fh1u7V6kWHpnLUc3TTlQekk/view?usp=sharing
in datasheet outputs is Green in Pin 1 4 7 10 14 18 21 24 but it all show outputs in Red.
and Red Pin 2 5 8 11 14 17 20 23 are all show outputs in Green.
It's switch between them. :disappointed_relieved: What I do wrong?

and I do this
The PORTD (Pins 0 to 7) is connected to 330Ω resistors. The resistor is connected to each display anode.

The PORTC (Pins A0 to A5) and PORTB (Pins 8 and 9) are connected to 1KΩ resistor to each transistor's base. The transistor switch GND to catodo of the LEDs.

The LEDs from web and mine are different Pin connection, and I try to connect it , It run all Rows but only 1 and 7 Column run .

What should I do

Thank you.
Sorry for my English skill.

Hi,

Have you tested your matrix? You need to test two things. First, is every led working?
Second, are the pin connections as described in that pdf?

To perform this test, disconnect the Arduino except for the 5V and 0V. Put the matrix on your breadboard. Use a single 330R and two long leads. Test every combination of pins in turn and make a record of what lights up.

When you finish this you will hopefully have proved that there are no faulty leds and that you have the correct pdf for your matrix.

Paul

Thanks for your suggestion .
I find it but all LEDs are still functioning.

I think the cathode module from BC337 or program code have some problems,

Can you give a schematic? Your photo looks like noodles! Perhaps drawing the schematic will help you figure out the problem.

One idea I have: the transistors may have reversed the logic of the cathodes. Have you tried changing the sketch such that the outputs connected to the cathodes are HIGH instead of LOW and LOW instead of HIGH?