Virtuabotixrtc.h Arduino Library -
Serial.println("RTC Time has been set!");
void setup() Serial.begin(9600);
Use VirtuabotixRTC if you already have a DS1302 module and need a 5-minute setup. Use RTClib for long-term, high-accuracy projects. Final Project: Internet-Free Alarm Clock Let's tie everything together with a practical project. This code will turn on an LED (or relay) at a specific time. virtuabotixrtc.h arduino library
// Example: April 30, 2026, 14:30:00, Wednesday (dayOfWeek = 4) myRTC.setDS1302Time(00, 30, 14, 30, 4, 4, 26); Serial
delay(60000); // Wait 1 minute between readings Serial.println("RTC Time has been set!")