Virtuabotixrtc.h — Arduino Library
virtuabotixRTC.h
The library is a lightweight, easy-to-use Arduino library specifically designed to interface with the DS1302 Real-Time Clock (RTC) module. It provides a high-level abstraction for setting and retrieving time and date data through a 3-wire serial interface. Core Functionality
The Virtuabotix RTC library offers several features that make it a popular choice among Arduino users: virtuabotixrtc.h arduino library
// Set time once (comment after first use) // myRTC.setDS1302Time(0, 0, 12, 3, 4, 5, 2026); virtuabotixRTC
Serial.println("RTC Time has been set!"); virtuabotixRTC.h The library is a lightweight
Summary
Time resets on reboot:
This occurs if you leave the setDS1302Time() command active in your code. Once the time is initially saved to the module's battery-backed memory, that line should be deleted or commented out.