Arduino Code:
int stcp_Pin = 4;
int shcp_Pin = 3;
int ds_Pin = 2;
int ds_Pin = 2;
void setup() {
pinMode(stcp_Pin, OUTPUT);
pinMode(shcp_Pin, OUTPUT);
pinMode(ds_Pin, OUTPUT);
}
pinMode(stcp_Pin, OUTPUT);
pinMode(shcp_Pin, OUTPUT);
pinMode(ds_Pin, OUTPUT);
}
void loop() {
for(int number=0; number<256; number++){
digitalWrite(stcp_Pin,LOW);
shiftOut(ds_Pin,shcp_Pin,LSBFIRST,number);
digitalWrite(stcp_Pin,HIGH);
delay(100);
}
}
for(int number=0; number<256; number++){
digitalWrite(stcp_Pin,LOW);
shiftOut(ds_Pin,shcp_Pin,LSBFIRST,number);
digitalWrite(stcp_Pin,HIGH);
delay(100);
}
}