Virtuabotixrtc.h Arduino Library
After uploading the code for the first time to set the time, comment out setDS1302Time()
This specific mapping ( 6,7,8 ) is the most commonly used configuration, as seen in many online examples and tutorials. However, you can assign any three available digital pins on your Arduino. virtuabotixrtc.h arduino library
Directly provides variables for each time component. After uploading the code for the first time
Note: You should upload the code once to set the time, then comment out the setDS1302Time line and upload the code again to prevent the Arduino from resetting the time to the compiled moment every time it resets. virtuabotixrtc.h arduino library
Here is an annotated example of how the library is typically used: