Thanks a lot. I modified the code, here it is.
int columns[]={13, 12, 11, 10, 9};
int rows[]={8, 7, 6, 5, 4, 3, 2};
const byte COLUMN_COUNT=5;
const byte ROW_COUNT=7;
void setup(){
for(int i=0; i<=4; i++){
pinMode(columns[i], OUTPUT);
}
for(int i=0; i<=6; i++){
pinMode(rows[i], OUTPUT);
}
}
void loop(){
dot(2, 1);
}
void dot(int col, int row){
for(int i=0; i<=4; i++){
digitalWrite(rows[i], HIGH);
}
for(int i=0; i<=6; i++){
digitalWrite(columns[i], LOW);
}
digitalWrite(rows[row], LOW);
digitalWrite(columns[col], HIGH);
}
My dot matrix is a generic 12 pin 5x7, I don't have a schematic. After modifing the code, the first, second, sixth and seventh rows of the first column light up.