stm32duino / STM32RTC

Arduino RTC library for STM32.
135 stars 49 forks source link

Rtc mix sketch #94

Closed FRASTM closed 1 year ago

FRASTM commented 1 year ago

This examples is configuring the RTC in MIX mode (binary + calendar BCD) and set Alarm B (if exists) few ticks after the current time, whenAlarm A is set in calendar mode. Mainly used on stm32wl55 devices.

Requires https://github.com/stm32duino/STM32RTC/pull/93

FRASTM commented 1 year ago

Running on the nucleo_wl55jc:

10:40:10.494 -> start at subsec = 18
10:40:10.494 -> set Alarm A 
10:40:10.494 -> set Alarm B at = 318
10:40:10.494 -> Alarm B Match! at subsec = 318
10:40:11.703 -> Alarm A Match! at subsec = 1280
FRASTM commented 1 year ago

Now sketch is in the https://github.com/stm32duino/STM32RTC/pull/93