Arduino Library [2021] | Virtuabotixrtch

// Define the RTC pins const int rtcClockPin = 2; const int rtcDataPin = 3; const int rtcRstPin = 4;

#include <VirtuabotixRTC.h>

#include <Wire.h> #include <LiquidCrystal_I2C.h> #include <VirtuabotixRTC.h> virtuabotixrtch arduino library

The DS1302 typically communicates via a 3-wire interface (CE, I/O, CLK). Connect them to your Arduino as follows (note: pin assignments can be changed in the code): // Define the RTC pins const int rtcClockPin