int ds_row = 12;
int ds_col = 11;
int stcp_row = 10;
int stcp_col = 9;
int shcp_row = 8;
int shcp_col = 7;

byte led_matrix [] = {0b10000111,0b10001011,0b10001101,0b10001110,
                      0b01000111,0b01001011,0b01001101,0b01001110,
                      0b00100111,0b00101011,0b00101101,0b00101110,
                      0b00010111,0b00011011,0b00011101,0b00011110};

void setup() {
  pinMode(ds_row, OUTPUT);
  pinMode(ds_col, OUTPUT);
  pinMode(stcp_row, OUTPUT);
  pinMode(stcp_col, OUTPUT);
  pinMode(shcp_row, OUTPUT);
  pinMode(shcp_col, OUTPUT);

}

int i = 0,led;
void loop() {
  if (i <=15) {led = led_matrix[i]; i++;}
  else {i = 0;}

  digitalWrite(stcp_row, LOW);
  shiftOut(ds_row, shcp_row, LSBFIRST, led);
  digitalWrite(stcp_row, HIGH);
  delay(250);

}
74HC595