In Maixduino, you can use up to 32 digital pins (can be arbitrarily selected among 48 FPIOs) as external interrupts.
Set Digital Pins With Interrupts.
attachInterrupt(pin, ISR, mode)
pin: the pin number
ISR: the ISR to call when the interrupt occurs; this function must take no parameters and return nothing. This function is sometimes referred to as an interrupt service routine.
mode: defines when the interrupt should be triggered. Four constants are predefined as valid values:
LOWto trigger the interrupt whenever the pin is low,
CHANGEto trigger the interrupt whenever the pin changes value
RISINGto trigger when the pin goes from low to high,
FALLINGfor when the pin goes from high to low.
HIGHto trigger the interrupt whenever the pin is high.
Turns off the given interrupt.
pin: the pin number of the interrupt to disable