We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I set it up like this:
setup() { rtc.begin(); rtc.setAlarmSeconds(59); rtc.enableAlarm(rtc.MATCH_SS); Watchdog.enable() }
loop() { Watchdog.reset(); LED OFF rtc.setSeconds(58); rtc.standbyMode(); LED ON }
I'm expecting it to sleep 1 second, but it actually sleeps 2 seconds. I'm also using Adafruit_SleepyDog for watchdog. Don't know if that matters.
Thanks
The text was updated successfully, but these errors were encountered:
I can confirm this. Basically sleeping for some seconds only seems to always add 1s extra:
rtc.setSeconds(0); rtc.setAlarmSeconds(0); rtc.enableAlarm(rtc.MATCH_SS); rtc.standbyMode();
-> Above results in a sleep for 1s.
rtc.setSeconds(0); rtc.setAlarmSeconds(1); rtc.enableAlarm(rtc.MATCH_SS); rtc.standbyMode();
-> Above results in a sleep for 2 seconds. And so on. I'm using version RTCZero 1.6.0 on an Adafruit Feather M0. No SleepyDog in use.
Sorry, something went wrong.
Interestingly the ArduinoLowPower (which uses the RTC too) lib does the same on my Feather M0
LowPower.sleep(0); -> sleeps for 1s LowPower.sleep(1000); -> sleeps for 2s
I tested with the TimedWakeup example: https://www.arduino.cc/en/Tutorial/LowPowerTimedWakeup
Might be a special behavior of the Adafruit M0 based Feathers?
No branches or pull requests
I set it up like this:
setup() {
rtc.begin();
rtc.setAlarmSeconds(59);
rtc.enableAlarm(rtc.MATCH_SS);
Watchdog.enable()
}
loop() {
Watchdog.reset();
LED OFF
rtc.setSeconds(58);
rtc.standbyMode();
LED ON
}
I'm expecting it to sleep 1 second, but it actually sleeps 2 seconds. I'm also using Adafruit_SleepyDog for watchdog. Don't know if that matters.
Thanks
The text was updated successfully, but these errors were encountered: