Arduino Function: begin(mode,inter_pin,callback)


This method is used to initialize power management with external interrupt wake-up. The parameter mode is used to set the external interrupt wake-up, the parameter inter_pin indicates wich interrupt pin is used (3,4,5,8 and 9) and the parameter callback is the reference to interrupt routine.




unsigned int mode * unsigned int inter_pin * voidFuncPtr callback


In the row above 8 is the pin used for interrupt wake-up and prova is the interrupt routine. Isn't necessary that interrupt routine executes a task because when an external interrupt occurs MCU wakes-up.

Based on the reference originally written by Arduino Community, and