Arduino प्रोग्राम में एक सेकंड की देरी उत्पन्न करने के लिए आवश्यक कथन है
Statement required in Arduino program to generate one second delay is
A
delay(100);
B
delay(1000);
C
delay(10000);
D
delay(1);
Explanation
The correct answer is (B) delay(1000);
Explanation:
- The
delay()function in Arduino is used to pause the execution of the program for a specified number of milliseconds. - To generate a 1-second delay, you need to pass the value 1000 to the
delay()function, as there are 1000 milliseconds in 1 second.
Correct Answer: B) delay(1000);