const int dataPin=8;
const int latchPin=10;
const int clockPin=11;
int dataArray[17] ={0B11111110,0B11111101,0B11111011,0B11110111,0B11101111,0B11011111,0B10111111,0B01111111,0B10011111,0B10100010,0B00001101,0B10011001,0B01001001,
0B01000001,0B00011111,0B00000001,0B00001001};
void setup() {
pinMode(dataPin,OUTPUT);
pinMode(latchPin,OUTPUT);
pinMode(clockPin,OUTPUT);
}
void loop() {
for(int index=0;index<=16;index++)
{
digitalWrite(latchPin,LOW);
shiftOut(dataPin,clockPin,MSBFIRST,dataArray[index]);
digitalWrite(latchPin,HIGH);
delay(100);
}
}