Virtuabotixrtc.h Info

#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 &lt;virtuabotixRTC

Serial.print("Date: "); Serial.print(myRTC.dayofmonth); Serial.print("/"); Serial.print(myRTC.month); Serial.print("/"); Serial.println(myRTC.year); // Format: seconds

Discover more from Vintage Bdsm Art

Subscribe now to keep reading and get access to the full archive.

Continue reading