jeelabs / jeelib

JeeLib for Arduino IDE: Ports, RF12, and RF69 drivers from JeeLabs
https://jeelabs.org/202x/sw/jeelib/
The Unlicense
489 stars 215 forks source link

Additional Sleepy options offered. #82

Closed JohnOH closed 8 years ago

JohnOH commented 9 years ago

Do you think these option have a place in the Master? They require stray interrupts to be managed with Serial.flush() etc.

word Sleepy::idleSomeTime (unsigned int secs) This waits for an int of seconds or any interrupt to exit, which ever comes first.

word Sleepy::idleTimer (byte prescale) Similar to above this will idle until 65535 * the 328P prescaler value or exit from any interrupt. Both the above are supported by: void Sleepy::idle ()