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 HzExplanation / Answer
LED needs resistance(200-1k ohms)
The frequency of the blinking LED for ledPin 10 is 2000Hz.
Option 2 is correct.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.