Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started