class Sleepy
The Sleepy class contains some utility code to help write sketches which use very little power.
#include <Ports.h>
#include <RF12.h> // needed to avoid a linker error :(
class Sleepy;
Public API
- Sleepy watchdogInterrupts() - start / stop the watchdog
- Sleepy powerDown() - go into power down mode with microwatt consumption
- Sleepy loseSomeTime() - use the watchdog to spend up to 65 seconds in power down mode
- Sleepy watchdogEvent() - must be called from the watchdog interrupt if "loseSomeTime()" is used