Arduino Library for RTCs, Ds1302, Ds1307, Ds3231, Ds3232, Ds3234 and Pcf8563/BM8563 with deep support. Please refer to the Wiki for more details. Please use the Github Discussions to ask questions as the GitHub Issues feature is used for bug tracking.
GNU Lesser General Public License v3.0
368
stars
126
forks
source link
Interrupt on uneven time events, e.g. after 5 minutes, 5 hours, etc. #97
Thank you for providing us with such a great library. I have been using it nicely on my ATMega328P to call an interrupt service routine each minute using following code:
[code] DS3231AlarmTwo alarm2(
0,
0,
0,
DS3231AlarmTwoControl_OncePerMinute);
Rtc2.SetAlarmTwo(alarm2);[/code]
To reduce the power consumption further, I'd like to go for an interrupt each 5 minutes. Is that possible to realize with your library?
In that example, it works:
https://forum.arduino.cc/index.php?topic=460850.0
Best and thank you. Please tell me if it is better to post it on gitter.
Marco
Dear Makuna,
Thank you for providing us with such a great library. I have been using it nicely on my ATMega328P to call an interrupt service routine each minute using following code: [code] DS3231AlarmTwo alarm2( 0, 0, 0, DS3231AlarmTwoControl_OncePerMinute); Rtc2.SetAlarmTwo(alarm2);[/code]
To reduce the power consumption further, I'd like to go for an interrupt each 5 minutes. Is that possible to realize with your library? In that example, it works: https://forum.arduino.cc/index.php?topic=460850.0
Best and thank you. Please tell me if it is better to post it on gitter. Marco