15. PWM Applications Arduino

Question.2

What will the following Arduino code do when executed?

const int ledPin = 9;

void setup() {
  pinMode(ledPin, OUTPUT);
}

void loop() {
  analogWrite(ledPin, 128);
  delay(1000);
  analogWrite(ledPin, 0);
  delay(1000);
}

Select Answer