8X8 Direct drive matrix

Thanks for the reply. I am using the code here: Arduino Playground - DirectDriveLEDMatrix

I am just unsure what pins on arduino to go to. In the first diagram they're clearly marked which pins go where from LED matrix to Arduino. However are pins 1-8 anode or cathode? I assume 1-8 is anode or cathode and 9-16 are anode or cathode. But I wired my LED matrix according to the schematic. This is why I am unsure where the colomns and rows go. My setup is rows are cathode and column is anode.