Virtuabotixrtc.h [updated] ◆
Serial.print("Date: "); Serial.print(myRTC.dayofmonth); Serial.print("/"); Serial.print(myRTC.month); Serial.print("/"); Serial.println(myRTC.year);
void setup() { Serial.begin(9600);
Serial.print("Current time: "); Serial.print(myRTC.hours); Serial.print(":"); Serial.print(myRTC.minutes); Serial.print(":"); Serial.println(myRTC.seconds); virtuabotixrtc.h
// Set the date and time only once (comment after first run) // myRTC.setDS1302Time(15, 42, 30, 4, 17, 9, 2023); // Format: seconds, minutes, hours, dayOfWeek, dayOfMonth, month, year } Serial
void loop() { myRTC.updateTime();