Virtuabotixrtc.h Arduino Library -

: Push date/time values from the Arduino into the DS1302 registers.

After running this sketch once, comment out the setDS1302Time line and re-upload a "read-only" sketch. Otherwise, you will reset the clock to the old time every time the Arduino boots. virtuabotixrtc.h arduino library

To use the library, you define the object with the pins connected to your module. A common setup involves connecting to digital pins 6, 7, and 8. // Creation of the Real Time Clock Object (CLK, DAT, RST) virtuabotixRTC myRTC( setup() { Serial.begin( : Push date/time values from the Arduino into

#include <Wire.h> #include "VirtuabotixRTC.h" virtuabotixrtc.h arduino library