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
The LED will TURN ON and OFF each Second.
The LED will remain OFF.
The LED will be dim (half brightness) for 1 second, then turn OFF for 1 second, and repeat.
The LED will be dim to half brightness and stay at that level without turning off.