int latchpin=11;
int clockpin=9;
int datapin=12;
byte LEDS=0b00000000;
int dt=1500;
void setup() {
  // put your setup code here, to run once:
Serial.begin(9600);
pinMode(latchpin, OUTPUT);
pinMode(datapin, OUTPUT);
pinMode(clockpin, OUTPUT);
}
void loop() {
  // put your main code here, to run repeatedly:
digitalWrite(latchpin, LOW);
shiftOut(datapin,clockpin,LSBFIRST,LEDS);
digitalWrite(latchpin, HIGH);
Serial.println(LEDS,BIN);
LEDS=LEDS+1;
delay(dt);
}