Hi,
i would like wake up sodaq one every 10 seconds, do some stuff and then sleep again.
I am little confused here, i do not use external and internal interrupts, and rtc.enableAlarm can’t help me because i can run it only once in a minute…
Any ideas?
Thank you in advance,
Regards,
Roman.
Hi
This should do it. Reset the secondscounter in the ISR to 0.
rtc.begin();
// Set the alarm at the 10 second mark
rtc.setAlarmSeconds(10);
// Match only seconds (Periodic alarm every minute)
rtc.enableAlarm(RTCZero::MATCH_SS);
// Attach ISR
rtc.attachInterrupt(RTC_ISR);
}
void RTC_ISR()
{
rtc.setSeconds(0);
}