Skip to content
Michael Miller edited this page Jul 16, 2019 · 6 revisions

DS3231AlarmTwo represents the settings for the alarm two. It is used to set and retrieve the state of the Alarm two.
This alarm is can only be configured to the minute.

Constructors

DS3231AlarmTwo( uint8_t dayOf, uint8_t hour, uint8_t minute, DS3231AlarmTwoControl controlFlags)

Construct an alarm two settings object.
dayOf - (0-6) (1-31) day of the week or the day of the month , see flags below
hour - (0-23) the hour of the day
minute - (0-59) the minute of the hour
controlFlags - one of the following to control the alarm operation:
DS3231AlarmTwoControl_HoursMinutesDayOfMonthMatch - a normal monthly calendar alarm
DS3231AlarmTwoControl_OncePerMinute - triggers every minute
DS3231AlarmTwoControl_MinutesMatch - triggers once an hour when the minute matched
DS3231AlarmTwoControl_HoursMinutesMatch - triggers once a day when hours and minutes match
DS3231AlarmTwoControl_HoursMinutesDayOfWeekMatch - triggers once a week on the given day of the week, hour, and minute

Methods

uint8_t DayOf()

<return>, the day of the week or day of the month, see control flags

uint8_t Hour()

<return>, returns the hour, 24 hour format

uint8_t Minute()

<return>, returns the minutes

DS3231AlarmTwoControl ControlFlags()

<return>, returns the control flag value