Zanduino / MCP7940

Arduino Library to access the MCP7940M, MCP7940N and MCP7940x Real-Time chips
GNU General Public License v3.0
35 stars 22 forks source link

How to obtain power failure date/hour #48

Closed Oberson-Antoine closed 4 years ago

Oberson-Antoine commented 4 years ago

Hello ! First of all, thank you for this librairy ! In the documentation, it is said that the RTC memorize power outage time/ date and when the power comes back on, how do we obtain these times/dates ?

SV-Zanshin commented 4 years ago

Hello sounox,

The functions [getPowerDown()](https://github.com/SV-Zanshin/MCP7940/wiki/getPowerDown()) and [getPowerUp()](https://github.com/SV-Zanshin/MCP7940/wiki/getPowerUp()) will return those date/time values to you.