int LedPin = 6;
int LedPinY = 10;
int redblink = 5;
int yellowblink = 3;
int dt = 500;
int j;
void setup() {
// put your setup code here, to run once:
pinMode(LedPin, OUTPUT);
pinMode(LedPinY, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
for (j=1;j<=redblink;j=j+1){
digitalWrite(LedPin, HIGH);
delay(dt);
digitalWrite(LedPin, LOW);
delay(dt);
}
for (j=1;j<=yellowblink;j=j+1){
digitalWrite(LedPinY, HIGH);
delay(dt);
digitalWrite(LedPinY, LOW);
delay(dt);
}
}