int DS_Pin = 19;
int STCP_Pin = 18;
int SHCP_Pin = 5;
int Dec_Digits[10] {252,96,218,242,102,182,62,224,510,246};
void setup()
{
pinMode(DS_Pin, OUTPUT);
pinMode(STCP_Pin, OUTPUT);
pinMode(SHCP_Pin, OUTPUT);
}
void loop()
{
for(int i=0; i<10; i++)
{
digitalWrite(STCP_Pin, LOW);
shiftOut(DS_Pin, SHCP_Pin, LSBFIRST, Dec_Digits[i]);
digitalWrite(STCP_Pin, HIGH);
delay(500);
}
}