Virtuabotixrtch Arduino Library -
int sundayBased = (myRTC.dayofweek % 7) + 1;
Here is a simple sketch to initialize the RTC and print the current time to the Serial Monitor. virtuabotixrtch arduino library
int sundayBased = (myRTC.dayofweek % 7) + 1;
Here is a simple sketch to initialize the RTC and print the current time to the Serial Monitor. virtuabotixrtch arduino library