Virtuabotixrtc.h Arduino Library !!install!! Jun 2026

#include // Creation of the Real Time Clock Object (CLK, DAT, RST) virtuabotixRTC myRTC(6, 7, 8); void setup() Serial.begin(9600); // Set time only on the first run: sec, min, hr, dow, day, month, year myRTC.setDS1302Time(00, 30, 15, 4, 16, 4, 2026); void loop() myRTC.updateTime(); // Pull latest data from the chip Serial.print("Current Date / Time: "); Serial.print(myRTC.dayofmonth); Serial.print("/"); Serial.print(myRTC.month); Serial.print("/"); Serial.print(myRTC.year); Serial.print(" "); Serial.print(myRTC.hours); Serial.print(":"); Serial.println(myRTC.minutes); delay(1000); Use code with caution. Copied to clipboard Installation and Availability