Virtuabotixrtc.h __hot__ Direct
#include <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 } virtuabotixrtc.h
// DS1302 pins: CLK, DAT, RST virtuabotixRTC myRTC(6, 7, 8); #include <virtuabotixRTC
void loop() { myRTC.updateTime();