1
0
mirror of https://github.com/arduino-libraries/ArduinoLowPower.git synced 2025-04-19 11:42:14 +03:00

6 Commits

Author SHA1 Message Date
Simon Knopp
fa71703f58 Add support for ADC wakeup interrupt on SAMD21
This can be used to configure the ADC window interrupt on the SAMD21. It
uses OSCULP32K via GCLK6 to clock the ADC while in sleep mode (the same
as used for the EIC).

Note that attachAdcInterrupt()/detachAdcInterrupt() should be called
immediately before/after LowPower.sleep() otherwise analogRead() will
not work as expected.

There is also an example (AdcWakeup.ino) which is much like the
ExternalWakeup example but uses the ADC interrupt instead.
2020-03-02 10:02:11 +13:00
Martino Facchin
5456a1f698 [Examples] Avoid spurious wakeup 2017-07-13 16:56:25 +02:00
chiararuggeri
21d2f7527f Added nRF52 compatibility
Waking from deepSleep() is comparable to an hard reset; the sketch won't restart from the sleep invocation but the wakeuup source can be retrieved with wakeupReason()
2017-04-20 14:38:15 +02:00
chiararuggeri
fcbf16f6a3 Proposed lowercase name for companion callback in sketch 2017-04-20 14:38:15 +02:00
Martino Facchin
562190f552 Add APIs for boards with companion chip (eg. Tian) 2016-12-06 18:43:05 +01:00
Martino Facchin
603428ca62 Add examples 2016-11-03 16:54:06 +01:00