void loop()
{
for (int dtime = 20 ; dtime <= 150; dtime += 5 )
{
digitalWrite(ledPinr, HIGH);
digitalWrite(ledPing, LOW);
digitalWrite(ledPinb, LOW);
delay(dtime);
digitalWrite(ledPinr, LOW);
digitalWrite(ledPing, LOW);
digitalWrite(ledPinb, HIGH);
delay(dtime);
digitalWrite(ledPinr, HIGH);
digitalWrite(ledPing, LOW);
digitalWrite(ledPinb, HIGH);
delay(dtime);
digitalWrite(ledPinr, LOW);
digitalWrite(ledPing, LOW);
digitalWrite(ledPinb, LOW);
delay(dtime);
digitalWrite(ledPinr, LOW);
digitalWrite(ledPing, HIGH);
digitalWrite(ledPinb, LOW);
delay(dtime);
digitalWrite(ledPinr, HIGH);
digitalWrite(ledPing, HIGH);
digitalWrite(ledPinb, HIGH);
delay(dtime);
}
}
{
for (int dtime = 20 ; dtime <= 150; dtime += 5 )
{
digitalWrite(ledPinr, HIGH);
digitalWrite(ledPing, LOW);
digitalWrite(ledPinb, LOW);
delay(dtime);
digitalWrite(ledPinr, LOW);
digitalWrite(ledPing, LOW);
digitalWrite(ledPinb, HIGH);
delay(dtime);
digitalWrite(ledPinr, HIGH);
digitalWrite(ledPing, LOW);
digitalWrite(ledPinb, HIGH);
delay(dtime);
digitalWrite(ledPinr, LOW);
digitalWrite(ledPing, LOW);
digitalWrite(ledPinb, LOW);
delay(dtime);
digitalWrite(ledPinr, LOW);
digitalWrite(ledPing, HIGH);
digitalWrite(ledPinb, LOW);
delay(dtime);
digitalWrite(ledPinr, HIGH);
digitalWrite(ledPing, HIGH);
digitalWrite(ledPinb, HIGH);
delay(dtime);
}
}