Add WIP weather stuff
This commit is contained in:
parent
07e83e7557
commit
23b1328cba
5 changed files with 42 additions and 18 deletions
src/WatchFeatures
|
@ -12,12 +12,10 @@ namespace WatchFeatures
|
|||
}
|
||||
|
||||
class WatchFeatures::RTC {
|
||||
public:
|
||||
Rtc_Pcf8563 rtc_pcf;
|
||||
|
||||
public:
|
||||
void Get(tmElements_t & tm);
|
||||
void Set(tmElements_t tm);
|
||||
uint64_t GetTimestamp();
|
||||
void SetTimer();
|
||||
bool CheckWakeup(); // Checks to really wake up or not, also resets the timer after the initial sleep
|
||||
void Resync(); // Resync the timer cycle, both initially and after RTC resync
|
||||
|
@ -25,6 +23,7 @@ public:
|
|||
static void OffsetTime(tmElements_t & tm, int offsetInSeconds);
|
||||
|
||||
private:
|
||||
Rtc_Pcf8563 m_rtcPcf;
|
||||
static RTC_DATA_ATTR bool m_timerSet, m_initialTimer;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue