Virtuabotixrtc.h Arduino Library (Edge HOT)

Here is an example code snippet that demonstrates how to use the Virtuabotix RTC library:

Unlike the more common DS3231 or PCF8523 modules which use I2C, the DS1302 chip relies on a proprietary 3-pin serial interface. The VirtuabotixRTC.h library (originally created by Virtuabotix) abstracts this communication into simple, readable C++ commands. virtuabotixrtc.h arduino library