stm32duino / STM32RTC

Arduino RTC library for STM32.
131 stars 48 forks source link

Rtc binary only mode subseconds param. expressed in milliseconds #101

Closed FRASTM closed 1 year ago

FRASTM commented 1 year ago

When the RTC is configured in BINARY only mode, only the Subsecond register is used The getTime is a getSubSeconds with subSeconds parameter as a 32bit number of millliseconds The setAlarm is a setAlarmSubSeconds with subSeconds parameter as a 32bit number of millliseconds The getDate returns 0 The setTime has no effect execpt resetting the subseconds counter. The setDate has no effect .

based on https://github.com/stm32duino/STM32RTC/pull/93