Arduino Function: begin(mode,inter_pin,callback)

Description

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.

Syntax

std.begin(WAKE_EXT_INTERRUPT,8,prova);

Parameters

unsigned int mode * unsigned int inter_pin * voidFuncPtr callback

Note

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,  wiring.org.co and  arduino.cc