Watchy/src/WatchyExpanded.h

45 lines
687 B
C
Raw Normal View History

#pragma once
// STL
2022-04-10 17:46:33 -04:00
#include <vector>
2022-04-10 18:16:52 -04:00
// GxEPD2
#include <GxEPD2_BW.h>
// Time
#include <TimeLib.h>
2022-04-11 13:23:40 -04:00
// Watchy
#include "config.h"
// Expanded
#include "WatchFace.h"
// Defs
class CWatchFace;
class CWatchyExpanded
{
public:
CWatchyExpanded();
void AddWatchFace(CWatchFace* pFace);
void Init();
private:
2022-04-11 13:23:40 -04:00
static void DisplayBusyCallback(const void*);
void UpdateScreen();
void DeepSleep();
void DrawBasicClock();
std::vector<CWatchFace*> m_faces;
std::int8_t m_face = 0;
GxEPD2_BW<GxEPD2_154_D67, GxEPD2_154_D67::HEIGHT> m_display;
tmElements_t m_currentTime;
2022-04-11 13:23:40 -04:00
std::int8_t m_guiState = kWatchFace_State;
};