: Provides direct access to individual time components such as myRTC.seconds myRTC.minutes myRTC.hours myRTC.dayofmonth myRTC.month myRTC.year Hardware Interface
The library is specifically designed to interface the DS1302 Real-Time Clock (RTC) module with Arduino . It provides a simple way to set and retrieve time using only three communication wires: Clock (SCLK), Data (I/O), and Reset (RST/CE). 1. Installation virtuabotixrtch arduino library
The library is specifically tailored for the DS1302 chip , which uses a 3-wire synchronous serial interface. While it does not utilize every advanced function of the chip, it provides robust support for the most common tasks: : Provides direct access to individual time components
// Set time: (second, minute, hour, dayOfWeek, date, month, year) // Example: 15:30:45 on Sunday, March 12, 2025 // Note: Day of week: 1=Sun, 2=Mon, 3=Tue, 4=Wed, 5=Thu, 6=Fri, 7=Sat myRTC.setDS1302Time(45, 30, 15, 1, 12, 3, 25); Installation The library is specifically tailored for the