Virtuabotixrtc.h Arduino Library -

delay(1000); // Update every second

void loop() myRTC.updateTime();

delay(500);

// Print the date Serial.print("Date: "); Serial.print(myRTC.dayofmonth); Serial.print("/"); Serial.print(myRTC.month); Serial.print("/20"); Serial.print(myRTC.year); virtuabotixrtc.h arduino library

void loop() // Nothing here – this is a one‑time setup delay(1000); // Update every second void loop() myRTC

Choose VirtuabotixRTC when you want to keep I2C free or are using a DS1302 module you already own. The VirtuabotixRTC library is a reliable, lightweight way to add timekeeping to your Arduino projects. Its straightforward functions and flexible pin assignment make it perfect for beginners and pros alike. Whether you’re building an automatic plant waterer, a data logger, or a programmable timer, this library has you covered. // Print the date Serial.print("Date: ")