Question: What should be the integer number in x ( line 9 ) for the loop method to run at 1 . 0 H z .

What should be the integer number in x(line 9) for the loop method to run at 1.0Hz.
void setup(){
// initialize digital pin LED_BUILTIN as an output.
pinMode (LED_BUILTIN, OUTPUT);
}
void loop(){
my_function (x);
}
// blink light for duration_ms
void my_function(int duration_ms){
digitalWrite(LED_BUILTIN, HIGH) ;
delay(duration_ms);
digitalWrite(LED_BUILTIN, LOW) ;
delay(50);
}
 What should be the integer number in x(line 9) for the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!