JChristensen / DS3232RTC

Arduino Library for Maxim Integrated DS3232 and DS3231 Real-Time Clocks
GNU General Public License v3.0
392 stars 135 forks source link

ALM1_MATCH_HOURS #70

Closed lucasguanes closed 4 years ago

lucasguanes commented 4 years ago

Hi

Firstly, thank you Jack for this wonderful library.

I'm trying to set the RTC to 2 alarms per day every day at 8:00 and 17:00. I've read through the documentation in the library but I'm still unsure.

On example 8 we have:

RTC.setAlarm(ALM1_MATCH_HOURS, minute(a1), hour(a1), 1);

I understand if we want to trigger the alarm at 8:00 then we need to say:

RTC.setAlarm(ALM1_MATCH_HOURS, 0, 8, 1);

Can someone please explain to me what the "1" at the end is for please?

Apologies if this is not the right place to ask this question, I have not been able to find information anywhere else.

JChristensen commented 4 years ago

See here in the README file. The last argument is "dayOrDate: The day of the week or the date of the month."