void setup() {
// put your setup code here, to run once:
DDRD= B11111111;
PORTD=B00000001;
}
void loop() {
// put your main code here, to run repeatedly:
if (PORTD == B10000000){
PORTD=B00000001;
delay(1000);
}
PORTD=PORTD << 1;
delay(1000);
}