15. PWM Applications Arduino

Question.3

Which of the following statements is true?

const int pwmPins[] = { 3, 5, 6, 9, 10, 11 };
int pwmValue = 51;

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

void loop() {
  for (int i = 0; i < 6; i++) {
    analogWrite(pwmPins[i], pwmValue);
  }
  delay(1000);
  while (1);
}

Select Answer