WKUP pin for shutdown mode
King-anderson opened this issue · 2 comments
King-anderson commented
Hi friends,
I want to wake up the micro-controller from shutdown mode using WKUP pin (PA0). is there anyway to do it in this repository approach?
fpistm commented
Hi @msadeghz ,
yes, use the attachInterruptWakeup
, usually PA0 is SYS_WKUP0
:
// Configure low power
LowPower.begin();
LowPower.attachInterruptWakeup(SYS_WKUP0, NULL, RISING);
...
LowPower.shutdown();
King-anderson commented
OK, got it.
thank you