连续点亮一个 LED 五 (5) 次,持续一 (1) 秒,然后连续点亮五次,持续半 (1 2 ) 秒

Light up a single LED five (5) times in a row for one (1) second on and off, and then five times in a row for half (1 2 ) of a second

我不知道如何暂时关闭所有 LED 电路。我需要连续点亮一个 LED 五 (5) 次,持续一 (1) 秒,然后连续点亮五次,持续半 (1/2) 秒。

你能告诉代码如何为这个程序编写代码吗?

int pin[]={13,12,9,6};
int x=4;

void setup()
{
  for(int i=0;i<x;i++){
    pinMode(pin[i],OUTPUT);
  } 
}

void loop()
{
  for(int i=0;i<x;i++){
    for(int k=0;k<5;k++){
      digitalWrite(pin[i], HIGH);
      delay(200); // Wait for 1000 millisecond(s)
      digitalWrite(pin[i], LOW);
      delay(200); // Wait for 1000 millisecond(s) 
    }
  }       
}
boolean round;
int pin[]={13,12,9,6};
int i;

void setup() {
  round =1;
  i=0;
  for(int j=0;j<4;j++){
    pinMode(pin[j],OUTPUT);
  } 

}

void loop() {
  if(round<6){
    digitalWrite(pin[i],HIGH);
    delay(1000);
    digitalWrite(pin[i],LOW);
    round++;
  }

  else{
    digitalWrite(pin[i],HIGH);
    delay(500);
    digitalWrite(pin[i],LOW);
    round++;
    if(round >10){
      round=0;
      i++;
      if(i>3) i=0;
    }
  }

}