From ee260900d407de199fc990d061ae05365c2b3789 Mon Sep 17 00:00:00 2001 From: GuruSR Date: Sun, 21 Nov 2021 22:47:08 -0500 Subject: [PATCH] Beta 1.3.1 for PCF8563 RTC. --- PCF8563/readme.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 PCF8563/readme.md diff --git a/PCF8563/readme.md b/PCF8563/readme.md new file mode 100644 index 0000000..0841571 --- /dev/null +++ b/PCF8563/readme.md @@ -0,0 +1,29 @@ +**The following are present:** + +**Library:** + +- This contains the library modified from SQFMI's version, removed the char output functions that return formatted time as I felt it didn't need to be in a hardware library, a Watch face yes, library for hardware, I didn't think so. +- This library is mostly a "direct plug in" in replacing the DS3232 RTC, meaning using the following code can make your Watch Face compilable for either by just setting 1 define. + +Class (Watchy.h): + +#ifndef PCF8563RTC + static DS3232RTC RTC; +#else + static PCF8563 RTC; +#endif + +Class (Watchy.cpp): + +#ifndef PCF8563RTC +DS3232RTC WatchyGSR::RTC(false); +#else +PCF8563 WatchyGSR::RTC(false); +#endif + +- The library has 2 notable #defines, PCF8563RTC (defined uses it, commented out, doesn't). Also TIME_H_DIFF which is used to put the year right from 1970 to 2000. + +**beta:** + +- These files go over top of the current build, these files offer compiling the Watchy_GSR with the PCF8563 RTC as in Watchy_GSR.h, it is set to 1. +- Move Watchy.h and Watchy.cpp from the libraries section, out to it's own Stream, so it isn't in the way of compiling this beta.