Virtuabotixrtc.h Library Download [portable] May 2026

#include <VirtuabotixRTC.h>

VirtuabotixRTC myRTC(2, 3, 4); // Define the RTC pins virtuabotixrtc.h library download

void setup() { myRTC.begin(); myRTC.setDS1307time(0, 0, 0, 1, 1, 2023, 1); // Set the time and date } #include &lt;VirtuabotixRTC

void loop() { myRTC.update(); Serial.print("Current Time: "); Serial.print(myRTC.hour); Serial.print(":"); Serial.print(myRTC.minute); Serial.print(":"); Serial.println(myRTC.second); delay(1000); } This example sets the RTC module to January 1, 2023, 00:00:00 and then prints the current time to the serial console every second. Serial.print("Current Time: ")