Serial input parallel output shift registers with arduino
unsigned char i;

digitalWrite(8,LOW);
for(i=0;i&lt;=6;i++){
    if(x+i==6) shiftOut(11,12,LSBFIRST,dataArray[y]);
    else shiftOut(11,12,LSBFIRST,0);
    }
digitalWrite(8,HIGH);
delay(10);
digitalWrite(8,LOW);