1.

What is the maximum number of arguments that the pulseIn() function accepts?(a) 1(b) 2(c) 3(d) 4The question was asked in examination.My doubt is from Advanced Input Output topic in portion Arduino Programming of Arduino

Answer»

The correct option is (c) 3

For EXPLANATION: The pulseIn() FUNCTION is used to determine the length of a pulse supplied to a digital pin. It generally accepts two arguments; the pin NUMBER, and the state, i.e. HIGH or LOW. If the state is given as HIGH, then it will wait for the pin to go HIGH and then start counting the time TILL the pin returns back to LOW. Here the length of the pulse is given by the function in microseconds.



Discussion

No Comment Found

Related InterviewSolutions