Naguissa / uRTCLib

Really tiny library to basic RTC functionality on Arduino. DS1307, DS3231 and DS3232 RTCs are supported.
https://www.foroelectro.net/librerias-arduino-ide-f29/rtclib-arduino-libreria-simple-y-eficaz-para-rtc-y-t95.html
GNU Lesser General Public License v3.0
87 stars 24 forks source link

add lostPower #9

Closed t2t-sonbui closed 4 years ago

t2t-sonbui commented 4 years ago

Add checking lost power of VBAT for DS3231

Naguissa commented 4 years ago

Integrated and new release has been crated.

Thanks!

I've aded also a lostPowerClear function and commented-out that functionality from uRTCLib::set

I've checked datasheets (on "extras" folder) and found that DS3232 also has just the same functionality in the same register, so added it to a switch .. case.

Cheers!