What is the use of the detachInterrupt() function?

What is the use of the detachInterrupt() function?
A. To turn off interrupt
B. To turn on interrupt
C. To disable interrupt functions for the remaining ON time.
D. To turn off the Arduino
 
Answer: A
Explanation: The interrupt service routine can be used to automate a number of functions in an arduino. In a situation where the entire focus of the code is bound to one function, the ISR can act as a pause for the arduino to stop the current function temporarily and divert memory to another function. The detachInterrupt() function turns off the ISR functionality temporarily.
 

Tìm kiếm

Back
Top