Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

int ledPin = 10;//use integer variable to store pin # for LED (global variable)

ID: 3866005 • Letter: I

Question

int ledPin = 10;//use integer variable to store pin # for LED (global variable) //connect LED this digital port/pin //the setup function runs once at startup void setup() { pinMode(ledPin. OUTPUT);//initialize the digital pin as an output. } //the loop routine runs over and over again forever void loop() { digitalWrite(ledPin, HIGH);//turn the LED on delay(12);//wait in msec digitalWrite(ledPin, LOW);//turn the LED off delay(8);//wait in msec } What is the frequency (Hertz) of the blinking LED? 50 Hz 2000 Hz 100 Hz 2 seconds 2 Hz

Explanation / Answer

LED needs resistance(200-1k ohms)

The frequency of the blinking LED for ledPin 10 is 2000Hz.

Option 2 is correct.