1.

Can the Arduino read sensor data from a pin while the delay() function is in effect?(a) Yes(b) NoThis question was addressed to me in an international level competition.The origin of the question is Time Functions in portion Arduino Programming of Arduino

Answer»

Correct ANSWER is (b) No

Explanation: The delay() function is USED to suspend OPERATIONS for a specified amount of time. This is really handy for certain operations like viewing data on the SERIAL Monitor. However, this has a very serious drawback; it suspends ALL operations during this time, i.e. no mathematical calculations, no sensor data INPUTS, etc. for the time it is in effect.



Discussion

No Comment Found

Related InterviewSolutions