Programming-Arduino (1) - Pages-146
Programming-Arduino (1) - Pages-146
The first argument specifies which of the two interrupts you want to use. Rather
confusingly, a 0 here means you are using pin 2, while a 1 means you are using
pin 3.
The next argument is the name of the function that is to be called when there
is an interrupt, and the final argument is a constant that will be one of
CHANGE, RISING , or FALLING . Figure 7-4 summarizes these options.
Conclusion
In this chapter, you have looked at some of the handy features that the Arduino
standard library provides. These features will save you some programming
effort, and if there is one thing that a good programmer likes, it is being able to