Virtuabotixrtch Arduino Library -

// Print time to Serial Monitor Serial.print("Time: "); Serial.print(myRTC.hours); Serial.print(":"); Serial.print(myRTC.minutes); Serial.print(":"); Serial.println(myRTC.seconds);

Uses a 3-wire connection (SCLK, I/O, and CE/RST) rather than standard I2C or SPI. Individual Data Access: Allows users to easily access specific time elements like dayofmonth as individual variables. Persistent Timekeeping: virtuabotixrtch arduino library

// Set initial time (once) // Second, Minute, Hour, DayOfWeek, DayOfMonth, Month, Year myRTC.setDS1302Time(0, 30, 14, 3, 15, 4, 2026); // Print time to Serial Monitor Serial

void setup() Serial.begin(9600);

// Print time to Serial Monitor Serial.print("Time: "); Serial.print(myRTC.hours); Serial.print(":"); Serial.print(myRTC.minutes); Serial.print(":"); Serial.println(myRTC.seconds);

Uses a 3-wire connection (SCLK, I/O, and CE/RST) rather than standard I2C or SPI. Individual Data Access: Allows users to easily access specific time elements like dayofmonth as individual variables. Persistent Timekeeping:

// Set initial time (once) // Second, Minute, Hour, DayOfWeek, DayOfMonth, Month, Year myRTC.setDS1302Time(0, 30, 14, 3, 15, 4, 2026);

void setup() Serial.begin(9600);