1.

What is the use of the digitalPinToInterrupt() function?(a) To create an Interrupt Object(b) To delete an Interrupt Object(c) To map the Arduino Pin to the Interrupt pin(d) To invoke the Interrupt Service RoutineI had been asked this question in unit test.I need to ask this question from Interrupt Service Routine in portion Arduino Programming of Arduino

Answer»

Correct choice is (C) To map the Arduino Pin to the Interrupt pin

To explain I would SAY: The digitalPinToInterrupt() function translates the physical pin number on the arduino into the interrupt index. This works in almost all Arduino Boards and is usually used in conjunction with the attachInterrupt() function.



Discussion

No Comment Found

Related InterviewSolutions