Skip to content

Conversation

@justinnewitter
Copy link
Contributor

This commit introduces one new method for DS3231 devices:

  • bool alarmEnabled(uint8_t alarm_num);

Updated the DS3231_alarm example to fetch the alarm1 enabled status.
Locally validated that this correctly fetches the enabled/disabled status
for alarm2 as well.

Sample output from the DS3231_alarm example

22:43:32 [Alarm1: 20 22:43:36, Mode: Second, Enabled: 1, Fired: 0
22:43:34 [Alarm1: 20 22:43:36, Mode: Second, Enabled: 1, Fired: 0
22:43:36 [Alarm1: 20 22:43:36, Mode: Second, Enabled: 1, Fired: 1 - Alarm cleared
22:43:38 [Alarm1: 20 22:43:36, Mode: Second, Enabled: 1, Fired: 0
22:43:40 [Alarm1: 20 22:43:36, Mode: Second, Enabled: 1, Fired: 0

The Enabled: 1 is what is new 😄

This commit introduces one new method for DS3231 devices:
  - bool alarmEnabled(uint8_t alarm_num);

Updated the DS3231_alarm example to fetch the alarm1
enabled status. Locally validated that this correctly
fetches the enabled/disabled status for alarm2 as well.
@justinnewitter justinnewitter marked this pull request as ready for review December 21, 2022 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant