Add blank page for weather for now
All checks were successful
Compile / Compile (push) Successful in 1m21s

This commit is contained in:
Lewis Jackson 2023-06-01 04:24:49 +03:00
parent 52478ec602
commit 3e7ddb805c
4 changed files with 80 additions and 2 deletions

View file

@ -0,0 +1,26 @@
#include "Weather.h"
#include "../SevenSegment.h"
#include "../Icons.h"
#include <Fonts/FreeSans9pt7b.h>
#include <Fonts/FreeMonoBold9pt7b.h>
#include <Fonts/FreeMonoBold12pt7b.h>
WatchFacePages::Weather::Weather(WatchyDisplay & display, WatchFeatures::WatchFeatures & features)
: m_display(display), m_features(features)
{
}
void WatchFacePages::Weather::InitBoot()
{
}
void WatchFacePages::Weather::InitWake()
{
}
void WatchFacePages::Weather::DrawPage(bool partialRefresh)
{
m_display.setFullWindow();
m_display.fillScreen(GxEPD_WHITE);
m_display.display(partialRefresh);
}

View file

@ -0,0 +1,26 @@
#pragma once
#pragma once
#include "Page.h"
#include "../WatchyDisplay.h"
#include "../WatchFeatures/WatchFeatures.h"
namespace WatchFacePages
{
class Weather;
}
class WatchFacePages::Weather : public WatchFacePages::Page
{
public:
Weather(WatchyDisplay & display, WatchFeatures::WatchFeatures & features);
void InitBoot() override;
void InitWake() override;
void DrawPage(bool partialRefresh = false) override;
private:
WatchyDisplay & m_display;
WatchFeatures::WatchFeatures & m_features;
};