45 inline void deeply() { sleepDeeply(); }
54 inline void deeplyFor(uint32_t sleepMs) { sleepDeeply(sleepMs); }
71 inline void lightlyFor(uint32_t sleepMs) { sleepLightly(sleepMs); }
80 inline void idle() { sleepIdle(); }
91 inline void idleFor(uint32_t sleepMs) { sleepIdle(sleepMs); }
110 void deeplyFor(uint32_t sleepMs, SimpleSleep_Cal calibrationData);
117 void lightlyFor(uint32_t sleepMs, SimpleSleep_Cal calibrationData);
124 void idleFor(uint32_t sleepMs, SimpleSleep_Cal calibrationData);
135 void sleepDeeply(uint32_t sleepMs);
136 void sleepLightly(uint32_t sleepMs);
137 void sleepIdle(uint32_t sleepMs);
void forever()
Sleep forever in a deep and dreamless slumber.
Definition: SimpleSleep.h:38
Support functions and macros which are common across AVR microcontrollers.
void idleFor(uint32_t sleepMs)
Wait patiently for a given time.
Definition: SimpleSleep.h:91
void deeplyFor(uint32_t sleepMs)
Sleep deeply for a given time, allow external interrupts where possible (LEVEL only usually)...
Definition: SimpleSleep.h:54
void lightly()
Sleep lightly, allow many interrupts, adc off, timers generally off.
Definition: SimpleSleep.h:62
SimpleSleep_Cal getCalibration()
For more accurate sleep times, you can generate calibration data and pass it into the deeplyFor...
void lightlyFor(uint32_t sleepMs)
Sleep lightly for a given time, allow many interrupts, adc off, timers generally off.
Definition: SimpleSleep.h:71
Simple Sleep class for Arduino.
Definition: SimpleSleep.h:24
void idle()
Wait patiently, most anything can wake you including Serial, timers etc.
Definition: SimpleSleep.h:80
void deeply()
Sleep deeply, allow external interrupts where possible (LEVEL only usually), bod off, adc off, timers generally off.
Definition: SimpleSleep.h:45