Arduino Low Power - LowPower.attachInterruptWakeup()

Description

Indicates the function to call and the conditions for a wakeup event.

Syntax

LowPower.attachInterruptWakeup(pin, callback, mode);

Parameters

pin: the pin used as external wakeup

callback: the function to call on wakeup

mode: the transitions to sense on the indicated pin. Can be one between:

  • FALLING
  • RISING
  • CHANGE