Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.
// set the interrupt mode for the external interrupt 2 to RISING // (everytime the pin gets from LOW to HIGH) interruptMode(EXTERNAL_INTERRUPT_2, RISING);
|Description||It is possible to generate and attend external interrupts on the Wiring hardware. On Wiring v1 boards the external interrupts capable pins are: 0, 1, 2, 3, 36, 37, 38 and 39. On Wiring S board the external interrupts capable pins are: 2, 3 and 18. In addition to being regular digital pins, note that some of these pins are also used for libraries like Wire or Serial/Serial1. The interruptMode method sets the mode in which an external interrupt is generated. External interrupts can be triggered at different stages in the value of a pin, LOW when a pin is low, CHANGE when the pin changes, RISING when the pin goes from low to high or FALLING when the pin goes from high to low.|