@@ -72,7 +72,7 @@ _SubSeconds alarm management_
7272 * ** ` void setAlarmTime(uint8_t hours, uint8_t minutes, uint8_t seconds, uint32_t subSeconds = 0, AM_PM period = AM) ` **
7373 * ** ` uint32_t getEpoch(uint32_t *subSeconds = nullptr) ` **
7474 * ** ` void setEpoch(uint32_t ts, uint32_t subSeconds = 0) ` **
75- * ** ` void setAlarmEpoch(uint32_t ts, Alarm_Match match = MATCH_DHHMMSS, uint32_t subSeconds = 0) ` **
75+ * ** ` void setAlarmEpoch(uint32_t ts, Alarm_Match match = MATCH_DHHMMSS, uint32_t subSeconds = 0) ` **
7676
7777_ Library version management_
7878
@@ -105,7 +105,7 @@ _Library version management_
105105_ One-Second interrupt_
106106
107107 STM32 RTC includes a one-second interrupt for generating a periodic interrupt signal.
108- - This feature is native on the stm32F1xx and mapped on the existing WakeUp interrupt on other stm32 mcus.
108+ - This feature is native on the stm32F1xx and mapped on the existing WakeUp interrupt on other stm32 mcus.
109109 - It is not available on some stm32F0 devices.
110110
111111 * ** new API:**
@@ -138,6 +138,21 @@ To know if a time has already been set use:
138138 }
139139```
140140
141+ ### Since STM32RTC version higher than 1.3.4
142+ _Second alarm (Alarm B)_
143+
144+ Some STM32 RTC have a second alarm named `RTC_ALARM_B`.
145+ It is possible to use it thanks all alarm API with an extra argument:
146+ - `STM32RTC::ALARM_A`
147+ - `STM32RTC::ALARM_B`
148+
149+ ```C++
150+ rtc.attachInterrupt(myCallback, &myCallbackdata, STM32RTC::ALARM_B);
151+ rtc.setAlarmDay(day, STM32RTC::ALARM_B);
152+ rtc.setAlarmTime(hours, minutes, seconds + 5, 567, STM32RTC::ALARM_B);
153+ rtc.enableAlarm(rtc.MATCH_DHHMMSS, STM32RTC::ALARM_B);
154+ ```
155+
141156Refer to the Arduino RTC documentation for the other functions
142157http://arduino.cc/en/Reference/RTC
143158
0 commit comments