void setup()
{
// put your setup code here, to run once:
DDRB = B00001111;
DDRD = B11111110;
PORTB = 15;
PORTD = 0;
}
void loop()
{
// put your main code here, to run repeatedly:
int i = 0;
int time = analogRead(A0)/0.98;
while (i < 10)
{
PORTD = B00001100;
PORTB = B00001110;
delay(time);
PORTB = B00001101;
PORTD = B10110110;
delay(time);
PORTB = B00001011;
PORTD = B10011110;
delay(time);
}
}