void loop() myRTC.updateTime(); // Read all registers into cache
The library is an Arduino library written to simplify communication with low-cost RTC modules, specifically the DS1302 (3-wire interface) and the DS1307 (I2C interface). virtuabotixrtc.h arduino library
By following the wiring diagrams, mastering updateTime() and setDS1302Time() , and applying the project examples above, you can add precise timekeeping to anything from a simple alarm clock to a complex agricultural data logger. void loop() myRTC