From 4ff3f0c4b9ead4801d8b8f03b96354c86b293ea7 Mon Sep 17 00:00:00 2001 From: JChristensen Date: Mon, 30 Dec 2019 21:41:50 -0500 Subject: [PATCH] Add depends to library.properties. Closes #73. Update alarm primer. --- alarm-primer.md | 5 ++++- library.properties | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/alarm-primer.md b/alarm-primer.md index da2d801..147d996 100644 --- a/alarm-primer.md +++ b/alarm-primer.md @@ -54,7 +54,7 @@ Sets Alarm 1 to occur once per minute at five seconds after the minute. Detects Sets Alarm 1 to occur once a minute at 5 seconds after the minute. Configures the RTC INT/SQW pin to be asserted when alarm match occurs. Detects the alarm by polling the INT/SQW pin. ### alarm_ex3 -Sets Alarm 1 to occur every 10 seconds. Detects the alarm by polling the RTC alarm flag. Note that the RTC does not have an alarm mode for every 10 seconds, so after an alarm occurs, we reset the alarm register to the current time plus ten seconds. +Sets Alarm 1 to occur every 10 seconds. Detects the alarm by polling the RTC alarm flag. Note that the RTC does not have an alarm mode for every 10 seconds, so after an alarm occurs, we reset the alarm register to the current time plus ten seconds. ### alarm_ex4 Set Alarm 1 to occur every second. Detects the alarm by polling the RTC alarm flag. @@ -67,3 +67,6 @@ Sets Alarm 1 for 20 seconds after each minute and Alarm 2 for each minute (at 00 ### alarm_ex7 Sets Alarm 2 for a specific time of day, hh:mm. Configures the RTC INT/SQW pin to be asserted when alarm match occurs. Detects the alarm by polling the INT/SQW pin. + +### alarm_ex8 +Set both alarms to occur once per day at different times. Configure the RTC INT/SQW pin to be asserted when alarm match occurs. Detect the alarms by polling the INT/SQW pin. Assumes the RTC time is already set. diff --git a/library.properties b/library.properties index 235f4cc..d167fca 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=DS3232RTC -version=1.2.9 +version=1.2.10 author=Jack Christensen maintainer=Jack Christensen sentence=Arduino Library for Maxim Integrated DS3232 and DS3231 Real-Time Clocks. @@ -7,3 +7,4 @@ paragraph=Requires PJRC's improved Arduino Time Library, https://github.com/Paul category=Timing url=https://github.com/JChristensen/DS3232RTC architectures=avr +depends=Time